Commit 24ca2df
authored
fix: add missing issues:write permission for PR autolabeler (#20)
The reusable workflow (commit-check/.github/.github/workflows/pr-labeler.yml)
requires 'issues: write' permission because the release-drafter autolabeler
uses the Issues API to set labels on PRs.
When a caller invokes a reusable workflow with 'permissions: {}' at the top
level and only 'pull-requests: write' + 'contents: read' at the job level,
'issues' defaults to 'none'. The reusable workflow cannot escalate its
permissions beyond what the caller grants, causing a startup_failure.
This adds 'issues: write' to the caller job-level permissions so the
reusable workflow's GITHUB_TOKEN can create PR labels.1 parent 069f7f3 commit 24ca2df
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
0 commit comments