Commit 2e4e2cc
Grant pull-requests write permission to PR comment workflows (#390)
The PR workflows call thollander/actions-comment-pull-request to post
review/build/label comments, but declare no permissions block, so they
inherit the repository's default read-only GITHUB_TOKEN and fail with
"Resource not accessible by integration" (e.g. the "Pull Request Approved"
workflow when a PR is approved).
Add a permissions block (contents: read, pull-requests: write) to
pr-review.yml, maven-pr.yml and gradle-pr.yml so the comment steps can
create/update comments.
Co-authored-by: joseegarcia <jose.garcia@disashop.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent f6a830d commit 2e4e2cc
3 files changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
0 commit comments