Skip to content

ci: let the release pipeline push to protected main (RELEASE_TOKEN)#25

Merged
UltimaPhoenix merged 1 commit into
mainfrom
ci/release-token-bypass
Jun 25, 2026
Merged

ci: let the release pipeline push to protected main (RELEASE_TOKEN)#25
UltimaPhoenix merged 1 commit into
mainfrom
ci/release-token-bypass

Conversation

@UltimaPhoenix

Copy link
Copy Markdown
Owner

Fixes the release pipeline broken by branch protection on main.

Root cause: main requires the CLA Assistant check, which only runs on PRs. The bump job (ci.yml) and the screenshots job push directly to main as github-actions[bot] (not an admin) → GitHub rejects the push.

Fix: check out with RELEASE_TOKEN (a fine-grained admin PAT scoped to dev-coach, Contents: RW) so the push bypasses protection (enforce_admins is off), and mark the release commit [skip ci] so the real-identity push doesn't re-trigger CI and double-publish.

Action required before next release: add the RELEASE_TOKEN secret (see PR discussion). Without it the jobs fall back to the default token (current behaviour — no regression).

… protection

main now requires the CLA Assistant check, which only runs on PRs — so the
release bump (ci.yml) and the screenshots job, which push directly to main as
github-actions[bot], were rejected. Check out with RELEASE_TOKEN (a fine-grained
admin PAT) so the push bypasses protection (enforce_admins is off), and mark the
release commit [skip ci] so the PAT-identity push doesn't re-trigger CI and
double-publish.

Requires a new repo secret RELEASE_TOKEN: fine-grained PAT, dev-coach only,
Contents: Read and write.
@UltimaPhoenix UltimaPhoenix merged commit 4ee295b into main Jun 25, 2026
1 of 2 checks passed
@UltimaPhoenix UltimaPhoenix deleted the ci/release-token-bypass branch June 25, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant