Skip to content

Commit 5528158

Browse files
committed
Move all permissions to top-level
1 parent 7af7d12 commit 5528158

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/new-prs.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: "Labelling new pull requests"
22

33
permissions:
44
contents: read
5+
pull-requests: write
56

67
on:
78
# It's safe to use pull_request_target here, because we aren't checking out
@@ -16,9 +17,6 @@ on:
1617

1718
jobs:
1819
automate-prs-labels:
19-
permissions:
20-
contents: read
21-
pull-requests: write
2220
runs-on: ubuntu-latest
2321
# Ignore PRs with more than 10 commits. Pull requests with a lot of
2422
# commits tend to be accidents usually when someone made a mistake while trying

0 commit comments

Comments
 (0)