Skip to content

Commit f122824

Browse files
authored
Change the permissions of PR Labeler (#1040)
1 parent 962677e commit f122824

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/pr-labeler.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,19 @@ on:
44
pull_request:
55
types: [opened]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
pr-labeler:
12+
permissions:
13+
contents: read # for TimonVS/pr-labeler-action to read config file
14+
pull-requests: write # for TimonVS/pr-labeler-action to add labels in PR
915
runs-on: ubuntu-latest
1016
timeout-minutes: 30
1117

1218
steps:
1319
- uses: TimonVS/pr-labeler-action@v4
1420
with:
21+
repo-token: ${{ secrets.GITHUB_TOKEN }}
1522
configuration-path: .github/pr-labeler.yml
16-
env:
17-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)