fix(ci): rename the FORGEJO_ADMIN_TOKEN Forgejo secret to CI_FORGEJO_ADMIN_TOKEN #45
Loading…
Reference in a new issue
No description provided.
Delete branch "jfraeys/feat/rotation-ci-sync"
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?
Follow-up to #44 (merged just before this commit was pushed, so main still has the bad name).
Forgejo forbids secret names starting with FORGEJO_, GITEA_, GITHUB_ or a digit, so
secrets.FORGEJO_ADMIN_TOKENcould never exist and always resolved empty in drift-check, terraform-plan/apply and staging-validate (PR-comment and status posts silently failed). The Forgejo secret is nowCI_FORGEJO_ADMIN_TOKEN(the vault key keeps its name). The secret already exists in Forgejo (added by hand);scripts/sync-ci-secrets.pyreports all five mapped secrets present.sync-ci-secrets.pynow validates names client-side against that rule before calling the API (tested: FORGEJO_X and 1BAD rejected, exit 1).🤖 Generated with Claude Code