Skip to content

Commit 9933017

Browse files
committed
fix(ci): let the PR labeler actually write labels
1 parent f348166 commit 9933017

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎.github/workflows/pr-labeler.yml‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,14 @@ concurrency:
1717

1818
permissions:
1919
contents: read
20-
# pulls.get only needs read; label mutations use the issues API.
21-
pull-requests: read
20+
# pulls.get only needs read, but the issues label endpoints are shared with
21+
# pull requests: adding or removing a label on a PR number is rejected with
22+
# "Resource not accessible by integration" unless the token also carries
23+
# pull_requests=write (the API reports `issues=write; pull_requests=write`
24+
# in x-accepted-github-permissions). Read-only here silently worked while
25+
# every run happened to be a no-op sync, and failed on the first PR that
26+
# actually needed a label written.
27+
pull-requests: write
2228
issues: write
2329

2430
jobs:

0 commit comments

Comments
 (0)