Skip to content

Commit 3f398a4

Browse files
Fix prow-action workflow permissions for issue commands
The /assign, /close, /reopen, and other prow commands were failing with "Resource not accessible by integration" because the workflow's GITHUB_TOKEN lacked write permissions for issues and pull requests. Add explicit permissions block to grant the minimum required access. Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
1 parent 360095a commit 3f398a4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/prow-action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
issue_comment:
66
types: [created]
77

8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
812
jobs:
913
execute:
1014
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)