Skip to content

Commit fd6b98c

Browse files
committed
Grant PR write access to token in label and assigner workflows
1 parent ec2ebb3 commit fd6b98c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/assigner.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ on:
1616

1717
jobs:
1818
assign:
19+
permissions:
20+
contents: read
21+
pull-requests: write
1922
runs-on: ubuntu-latest
2023
steps:
2124
- name: Checkout

.github/workflows/label.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ on: [pull_request_target]
1010

1111
jobs:
1212
label:
13-
13+
permissions:
14+
contents: read
15+
pull-requests: write
1416
runs-on: ubuntu-latest
15-
1617
steps:
17-
- uses: actions/labeler@v2
18+
- uses: actions/labeler@v4
1819
with:
1920
repo-token: "${{ secrets.GITHUB_TOKEN }}"
2021
configuration-path: .github/pr-labels.yml

0 commit comments

Comments
 (0)