Skip to content

Commit 44f7d18

Browse files
authored
[chore] update permissions for add-labels workflow (#12429)
Reduce the scope of permissions given to the github token Signed-off-by: Alex Boten <[email protected]>
1 parent ff07214 commit 44f7d18

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/add-labels.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ on:
33
issue_comment:
44
types: [created]
55

6+
permissions: read-all
7+
68
jobs:
79
add-labels:
810
if: ${{ !github.event.issue.pull_request && startsWith(github.event.comment.body, '/label') && github.repository_owner == 'open-telemetry' }}
11+
permissions:
12+
issues: write
913

1014
runs-on: ubuntu-24.04
1115
steps:

0 commit comments

Comments
 (0)