Skip to content
This repository was archived by the owner on Jun 26, 2026. It is now read-only.

Commit e3ceabf

Browse files
authored
Merge pull request #20 from cozystack/fix/ci-labeler-issues-permission
fix(ci): grant issues:write to pr-labeler workflow
2 parents cfc690d + 2e53efc commit e3ceabf

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@ on:
66

77
permissions:
88
contents: read
9+
# `pull-requests: write` is required for editing the PR conversation
10+
# surface (comments, reviewers). Labels live behind the issues API
11+
# (`POST /repos/.../issues/{n}/labels`), so adding or removing them on
12+
# a PR needs `issues: write` even when the target is a pull request.
13+
# Without this scope, github.rest.issues.addLabels fails with
14+
# `Resource not accessible by integration` (HTTP 403).
915
pull-requests: write
16+
issues: write
1017

1118
# Coalesce rapid edited/synchronize bursts on the same PR so an older run
1219
# cannot land its label mutations after a newer run computed a different set.

0 commit comments

Comments
 (0)