Page MenuHomePhorge

mirroring to github is broken?
Closed, ResolvedPublic

Description

at least on our install, we're getting this error:

COMMAND
git push --verbose --mirror -- '********'

STDOUT
(empty)

STDERR
Pushing to https://********@github.com/phorgeit/phorge.git
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/phorgeit/phorge.git/'

Event Timeline

turns out the "...removed in 2021" is just github's way of saying "your auth key has expired about 2 weeks ago".

I'm not sure how to generate a new token that has push access, but I'm almost sure there's a way to do that.

Ok, I figured it out.
I'm recording it here, but I suspect it might change when we need it again (the new token will expire in June 2026):

  • go to your own account's settings
  • "Developer settings" at the bottom
  • Personal access tokens -> fine grained tokens -> generate new token
  • under "Resource owner", select the org (phorgeit)
  • under "Repository access" select "all"
  • new "Repository permissions" button will show up. click to expand
  • select "content", which is what you need for push.

the rest is kinda trivial.

Uh thanks! GitHub rate limits are annoying when cloning big projects.

In case a definitive fix is needed, I noticed that SSH is more reliable. But extra time involved creating a new Diffusion URI, and setting up credentials, and pushing that additional SSH key in the GH project. But it's blazing fast then.