Use GitHub App token for release uploads#2149
Merged
juliusmarminge merged 1 commit intomainfrom Apr 17, 2026
Merged
Conversation
- Mint a release-scoped GitHub App token in the workflow - Pass the token to asset upload steps
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
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
Testing
steps.app_token.outputs.token.Note
Medium Risk
Medium risk because it changes the credentials used by the release workflow; misconfigured app secrets/permissions could cause release creation or asset uploads to fail.
Overview
The release workflow now mints a GitHub App installation token (
actions/create-github-app-token@v2) at the start of thereleasejob.Both
softprops/action-gh-release@v2steps (existing release and first release) are updated to use that App token viatoken: ${{ steps.app_token.outputs.token }}, instead of relying on the default workflow token.Reviewed by Cursor Bugbot for commit 8f158bd. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Use GitHub App token for release uploads in the release workflow
The
Publish GitHub Releasejob in release.yml now mints a GitHub App token viaactions/create-github-app-token@v2and passes it explicitly to both release publishing steps, replacing the default workflow token.Macroscope summarized 8f158bd.