79107881

Date: 2024-10-20 19:27:58
Score: 0.5
Natty:
Report link

You can either do that through Gitea UI

or if you have a lot of repositories to update, the token is in the git config of each repository you have mirrored

Gitea does not keep the token elsewhere in its own database or provide an api call to update the token

here a sample from one of mine (removed any sensititve details)

[core]
repositoryformatversion = 0
filemode = true
bare = true
[remote "origin"]
url = https://oauth2:[here is the token]@github.com/[org]/[repo].git
fetch = +refs/:refs/
mirror = true
fetch = +refs/tags/:refs/tags/

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: ylorph