Skip to content

Commit e2bc0a0

Browse files
committed
add token perms
1 parent 7665cf1 commit e2bc0a0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/debug-comment-action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ on:
55
types: [created]
66

77
jobs:
8-
run-command-and-comment:
8+
run-command-from-comment:
99
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/debug-action') }}
10+
permissions: # https://docs.github.com/en/rest/issues/comments?apiVersion=2022-11-28#create-an-issue-comment
11+
contents: 'read'
12+
issues: 'write'
13+
pull-requests: 'write'
1014
runs-on: ubuntu-latest
1115
steps:
1216
# Ensure we are making checks using the context in main branch to be safe

0 commit comments

Comments
 (0)