Fix workflow permissions for PR commenting#3
Merged
Conversation
Add explicit permissions to the manual integration test workflow to allow commenting on pull requests and issues. This fixes the "Resource not accessible by integration" error when the workflow attempts to post test results to a PR. Permissions added: - contents: read (to checkout code) - issues: write (to comment on issues) - pull-requests: write (to comment on PRs) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
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
Changes
contents: read- Required to checkout codeissues: write- Required to comment on issuespull-requests: write- Required to comment on PRsProblem
The manual integration test workflow was failing in the test summary job with:
This occurred when the workflow tried to post comments on PRs using the GitHub API.
Solution
By explicitly declaring the required permissions at the workflow level, we grant the necessary access for the GITHUB_TOKEN to interact with issues and pull requests.
Test Plan
🤖 Generated with Claude Code