Commit 292d598
committed
ci(auto-sync): grant issues:write so gh label create works
The label-management API (POST /repos/{owner}/{repo}/labels) requires
'issues: write'. When a workflow declares any explicit permissions, all
unlisted scopes default to 'none' — so the existing block silently
denied label creation. The PR-creation step then failed with
'could not add label: auto-sync not found'.
Also drop '2>/dev/null' on the idempotent label-create so future
failures surface in logs instead of being swallowed.1 parent 8a2e2e0 commit 292d598
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
153 | | - | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| |||
0 commit comments