fix(ci): add pull-requests write permission to GitHub App token in pre-commit autoupdate workflow - #88
Merged
Merged
Conversation
|
🚅 Deployed to the tax-tracker-pr-88 environment in endearing-eagerness
|
railway-app
Bot
temporarily deployed
to
endearing-eagerness / tax-tracker-pr-88
August 2, 2026 14:48
Destroyed
…e-commit autoupdate workflow
railway-app
Bot
temporarily deployed
to
endearing-eagerness / tax-tracker-pr-88
August 2, 2026 14:50
Destroyed
Copilot
AI
changed the title
[WIP] Fix issue with Copilot integration
fix(ci): add pull-requests write permission to GitHub App token in pre-commit autoupdate workflow
Aug 2, 2026
ShoGinn
approved these changes
Aug 2, 2026
There was a problem hiding this comment.
Pull request overview
Updates the pre-commit autoupdate GitHub Actions workflow so the GitHub App token used by peter-evans/create-pull-request has sufficient permissions to open a pull request, resolving Resource not accessible by integration failures in the automation.
Changes:
- Added
permission-pull-requests: writeto theactions/create-github-app-tokenstep so the generated GitHub App token can create PRs.
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.
The pre-commit autoupdate workflow was failing with
Resource not accessible by integrationwhenpeter-evans/create-pull-requestattempted to open a PR. The GitHub App token was scoped topermission-contents: writeonly —pull-requests: writewas missing, so the API call to create the PR was rejected.Summary
permission-pull-requests: writeto theactions/create-github-app-tokenstep so the generated token carries the required permission for PR creation.Validation
just check(or equivalent targeted checks) was run successfullyTax Logic Review Checklist
README.mdand/ordocs/)Risk and Impact
CI-only change. No production code, tax logic, or user-facing behavior affected. Restores the automated weekly pre-commit hook update workflow.