Skip to content

Open the release PR with a GitHub App token so CI runs on it (D-60) - #60

Merged
eddybean merged 2 commits into
mainfrom
ci/bump-app-token
Nov 28, 2026
Merged

eddybean merged 2 commits into
mainfrom
ci/bump-app-token

Conversation

@eddybean

@eddybean eddybean commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • bump.yml gets an installation token of the repository's own GitHub App (actions/create-github-app-token v3.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 of release/vX.Y.Z and gh pr create. The commit is made as the App's bot user.
  • The workflow's GITHUB_TOKEN is cut to contents: read, and the gh workflow run ci.yml step is removed: a PR opened by an App runs ci.yml on pull_request like any other PR.
  • New decision record 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_request CI run by github-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 findings
  • Oxfmt check on bump.yml
  • Next gh workflow run bump.yml: the release PR is authored by the App's bot and its Frontend / Rust / Supply chain checks run from pull_request with nothing awaiting approval

🤖 Generated with Claude Code

eddybean and others added 2 commits November 28, 2026 23:50
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>
@eddybean
eddybean enabled auto-merge (squash) November 28, 2026 14:53
@eddybean
eddybean merged commit 3a1705c into main Nov 28, 2026
6 checks passed
@eddybean
eddybean deleted the ci/bump-app-token branch November 28, 2026 14:54
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