fix(ci): rename the FORGEJO_ADMIN_TOKEN Forgejo secret to CI_FORGEJO_ADMIN_TOKEN #45

Merged
jfraeys merged 1 commit from jfraeys/feat/rotation-ci-sync into main 2026-10-10 11:14:31 -04:00
Owner

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_TOKEN could 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 now CI_FORGEJO_ADMIN_TOKEN (the vault key keeps its name). The secret already exists in Forgejo (added by hand); scripts/sync-ci-secrets.py reports all five mapped secrets present.

sync-ci-secrets.py now validates names client-side against that rule before calling the API (tested: FORGEJO_X and 1BAD rejected, exit 1).

🤖 Generated with Claude Code

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_TOKEN` could 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 now `CI_FORGEJO_ADMIN_TOKEN` (the vault key keeps its name). The secret already exists in Forgejo (added by hand); `scripts/sync-ci-secrets.py` reports all five mapped secrets present. `sync-ci-secrets.py` now validates names client-side against that rule before calling the API (tested: FORGEJO_X and 1BAD rejected, exit 1). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(ci): rename the FORGEJO_ADMIN_TOKEN Forgejo secret to CI_FORGEJO_ADMIN_TOKEN
All checks were successful
Lint / lint (pull_request) Successful in 1m16s
e3b3952e18
Forgejo forbids secret names starting with FORGEJO_, GITEA_, GITHUB_ or a
digit, so secrets.FORGEJO_ADMIN_TOKEN could never exist and always resolved
empty in drift-check, terraform-plan/apply and staging-validate (PR-comment and
status posts were silently failing). The secret is now CI_FORGEJO_ADMIN_TOKEN
(vault key unchanged). sync-ci-secrets.py validates names client-side against
that rule before calling the API.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfraeys/infra!45
No description provided.