-
Notifications
You must be signed in to change notification settings - Fork 0
Add permissions block to pr-checks workflow #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,9 @@ name: PR Checks | |
| on: | ||
| pull_request: | ||
| types: [opened, reopened, synchronize, edited] | ||
| permissions: | ||
| pull-requests: read | ||
| issues: write | ||
| jobs: | ||
| validate: | ||
| runs-on: ubuntu-latest | ||
|
Comment on lines
+6
to
10
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The Suggested FixIn the Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. |
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR description states that
pull-requests: writeis needed to allowgithub.rest.issues.createComment()to comment on PRs, but the implementation setspull-requests: readinstead. This will not grant sufficient permissions to create comments on pull requests. The workflow will continue to fail with "Resource not accessible by integration" error. Change this topull-requests: writeas described in the PR.