Repository navigation
Open the release PR with a GitHub App token so CI runs on it (D-60) - #60
Merged
Merged
Conversation
bump.yml pushed and opened the release PR with GITHUB_TOKEN and then dispatched ci.yml. On #42 the dispatched run passed, but a pull_request run by github-actions[bot] stayed "awaiting approval" and blocked the merge. The workflow now gets a token of the repository's own GitHub App (Contents and Pull requests write) for the checkout, push and PR, commits as the App's bot, cuts GITHUB_TOKEN to contents: read and drops the dispatch step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
bump.ymlgets an installation token of the repository's own GitHub App (actions/create-github-app-tokenv3.4.0, pinned by SHA;vars.RELEASE_APP_CLIENT_ID,secrets.RELEASE_APP_PRIVATE_KEY; Contents and Pull requests write only) and uses it for the checkout, the push ofrelease/vX.Y.Zandgh pr create. The commit is made as the App's bot user.GITHUB_TOKENis cut tocontents: read, and thegh workflow run ci.ymlstep is removed: a PR opened by an App runsci.ymlonpull_requestlike any other PR.docs/decisions/D-60-bump-app-token.md; D-42 and D-52 point to it, the index and CLAUDE.md are updated.Why
On the v0.1.7 release PR (#42) the dispatched CI run passed, but GitHub also created a
pull_requestCI run bygithub-actions[bot]left at "awaiting approval", which blocked the merge until it was approved or the ruleset bypassed.Test plan
npm run lint:actions(zizmor): no findingsbump.ymlgh workflow run bump.yml: the release PR is authored by the App's bot and itsFrontend/Rust/Supply chainchecks run frompull_requestwith nothing awaiting approval🤖 Generated with Claude Code