This repository was archived by the owner on Jun 26, 2026. It is now read-only.
Repository navigation
Commit 2e53efc
committed
fix(ci): grant issues:write to pr-labeler workflow
addLabels and removeLabel call the issues API endpoint
(POST /repos/.../issues/{number}/labels) even when the target is a
pull request. Without 'issues: write' the workflow token cannot
mutate labels and the call returns HTTP 403 'Resource not accessible
by integration'.
The previous 'pull-requests: write' grant covers the PR conversation
surface — comments, reviewers, merge state — but not labels, which
GitHub treats as an issues resource. Add the missing scope and
document the reasoning inline so a future reader does not retry the
same mistake.
Assisted-By: Claude <noreply@anthropic.com>
Signed-off-by: Aleksei Sviridkin <f@lex.la>1 parent 92ff040 commit 2e53efc
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
9 | 15 | | |
| 16 | + | |
10 | 17 | | |
11 | 18 | | |
12 | 19 | | |
| |||
0 commit comments