fix: Gitea Actions secrets — GITEA_ prefix reserved, add provisioning sync #230
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Gitea reserves the
GITEA_prefix for Actions secrets.secrets.GITEA_TOKENresolved to empty, causing 401 reqPackageAccess on all 28 package uploads.Root cause
GITEA_Fix
DEPLOY_TOKEN(maps toGITEA_TOKENenv var in workflows)provision_gitea_actions()tosrc/api/auth/provision.pyprovision()andbootstrap()flowssecrets.DEPLOY_TOKENDEPLOY_TOKENsecret via API immediately to unblock CIFixed in
f6f47b9. Same fix as #229 — see that issue for details.Additional work:
GITEA_ACTIONS_SECRET_MAPin provision.py mapsDEPLOY_TOKEN→GITEA_TOKEN,REGISTRY_USER→GITEA_ADMIN_USER,REGISTRY_TOKEN→GITEA_ADMIN_PASSWORDPUT /repos/{owner}/{repo}/actions/secrets/{name}to create/update secretsVerified: CI + deploy green.