Skip to content

Commit b59c6e9

Browse files
chore: update permissions for labels (#523)
1 parent 770a486 commit b59c6e9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/issue-labels.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ on:
88

99
jobs:
1010
label-op-response:
11+
if: github.event_name == 'issue_comment'
1112
runs-on: ubuntu-latest
13+
permissions:
14+
issues: write
1215
steps:
1316
- name: Check if the comment is from the OP
1417
id: check-op
@@ -37,6 +40,8 @@ jobs:
3740
label-new-issue:
3841
if: github.event.action == 'opened'
3942
runs-on: ubuntu-latest
43+
permissions:
44+
issues: write
4045
steps:
4146
- name: Add 'Needs Attention' label to new issue
4247
uses: actions-ecosystem/action-add-labels@v1

0 commit comments

Comments
 (0)