Skip to content

ci: use the org-wide exadev App token for the release-commit push - #10

Merged
Mearman merged 1 commit into
mainfrom
fix/release-push-app-token
Sep 1, 2026
Merged

Mearman merged 1 commit into
mainfrom
fix/release-push-app-token

Conversation

@Mearman

@Mearman Mearman commented Sep 1, 2026

Copy link
Copy Markdown
Member

Main went red immediately after the new branch-protection ruleset started requiring pull requests: semantic-release's own direct push of the version-bump commit (via @semantic-release/git) got rejected with GH013, since the default GITHUB_TOKEN has no bypass for that rule.

Fix: generate an installation token from the exadev GitHub App (org-wide access, already added as an Integration bypass_actor on this repo's ruleset) and use it for checkout's git credentials, so the release push authenticates as an actor the ruleset explicitly allows through. Every other step in the job keeps using the plain GITHUB_TOKEN, unchanged.

Verified: the exadev app's installation has contents: write, and I confirmed via a disposable probe workflow (pushed and deleted) that secrets.GH_APP_ID/secrets.GH_APP_PRIVATE_KEY do resolve to this app before relying on it here.

main's ruleset now requires every change to land via a pull request,
which blocks @semantic-release/git's own direct push of the version-bump
commit -- the default GITHUB_TOKEN has no bypass for that rule. Generates
an installation token from the exadev GitHub App (already installed with
access to every ExaDev repo, and added as an Integration bypass_actor on
this repo's ruleset) and uses it for checkout's git credentials instead,
so only the push itself is elevated; every other API call in the job
keeps using GITHUB_TOKEN unchanged.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review Completed 2026-09-01T15:59:04.195490Z b5ab2a5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Mearman
Mearman merged commit 99f4f8d into main Sep 1, 2026
12 checks passed
@Mearman
Mearman deleted the fix/release-push-app-token branch September 1, 2026 15:49
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 1.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant