ci(release): push the Version Packages PR with a GitHub App token so CI runs on it - #126
Draft
PunGrumpy wants to merge 2 commits into
Draft
ci(release): push the Version Packages PR with a GitHub App token so CI runs on it#126PunGrumpy wants to merge 2 commits into
PunGrumpy wants to merge 2 commits into
Conversation
The Version Packages PR is pushed with GITHUB_TOKEN, and GitHub never runs workflows for events that token creates, so every pull_request run on changeset-release/main sat in action_required or failed with zero jobs (#125 and every release PR before it). Add an actions/create-github-app-token step gated on the RELEASE_APP_ID repository variable, requesting only contents and pull-requests write. Until the variable and the RELEASE_APP_PRIVATE_KEY secret exist the step is skipped, so the release keeps working exactly as before.
Pass the minted token to changesets/action/version as github-token, falling back to github.token when the App step was skipped. Once the App is installed the PR is authored by it and Code Quality, CodeQL, Docker Doctor, React Doctor and Kit Push actually run on it.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Contributor
|
The latest Docker Doctor scan for this pull request. Learn more about Docker Doctor.
Score: 84 / 100 · 3 issues
Scanned by Docker Doctor for commit |
PunGrumpy
marked this pull request as draft
September 7, 2026 15:45
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.
Description
Every
pull_requestworkflow on the Version Packages PR has been dead since the very first release PR (#1): Code Quality, CodeQL, Docker Doctor, React Doctor and, since #121, Kit Push all end asaction_requiredor as afailurewith zero jobs and no log. GitHub labels the zero-job runs "likely failed because of a workflow file issue", but the workflow files at those SHAs are byte-identical tomain. The latest instance is https://github.com/PunGrumpy/docker-doctor/actions/runs/33961927574 on #125.The cause is the token, not the workflows:
changesets/action/versionpusheschangeset-release/mainwith the defaultGITHUB_TOKEN, and GitHub never starts workflows for events created by that token. The release itself is unaffected (0.5.1 published with provenance, kit 0.1.6 pushed), only the PR never gets CI.This PR makes the Version job mint a GitHub App token and hand it to
changesets/action/versionasgithub-token, so the PR is authored by the App and the workflows run on it.actions/create-github-app-token@v3requests onlycontents: writeandpull-requests: write.RELEASE_APP_IDrepository variable (a variable, not a secret, because stepifcannot read secrets). Until the variable and theRELEASE_APP_PRIVATE_KEYsecret exist the step is skipped andgithub-tokenfalls back togithub.token, so this is safe to merge before the App is set up.RELEASE_APP_IDandRELEASE_APP_PRIVATE_KEY.Related Issues
N/A. Found while investigating the failed Kit Push run on #125.
Checklist
Screenshots (if applicable)
N/A
Additional Notes
Verified locally with
actionlinton both commits and with the repo formatter; the YAML parses. The behaviour change cannot be exercised until the App variable and secret are set. The first Version Packages PR after that should show the five workflows actually running instead ofaction_required.