Scope down create-github-app-token permissions in bump workflows#14874
Merged
Conversation
The generated GitHub App token was minted with all installation permissions but is only used to push a branch and open a PR via peter-evans/create-pull-request. Restrict it to contents:write and pull-requests:write. https://claude.ai/code/session_015kWwkXkn8vzX14psMPDtb2
reaperhulk
approved these changes
May 17, 2026
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
actions/create-github-app-tokenmints a token carrying every permission the BoringBot app's installation has, by default. In the three daily dependency-bump workflows that token is only used bypeter-evans/create-pull-requestto push a branch and open a PR.This scopes each generated token down to the minimum required:
permission-contents: writepermission-pull-requests: writeAffected workflows:
.github/workflows/downstream-version-bump.yml.github/workflows/x509-limbo-version-bump.yml.github/workflows/boring-open-awslc-bump.ymlThis limits blast radius: a compromise of any of these workflow runs can no longer leverage the broader app installation permissions.
Test plan
peter-evans/create-pull-requeststill succeeds on the next scheduled (orworkflow_dispatch) run — it requires onlycontents: writeandpull-requests: write, both of which are granted.https://claude.ai/code/session_015kWwkXkn8vzX14psMPDtb2
Generated by Claude Code