Commit b6d6502
ci: unblock bot-triage for read-permission contributors (#2587)
The `anthropics/claude-code-action@v1` action defaults to rejecting
actors without write permission to the repo — a sensible default for
PR-related automation, but exactly backward for issue triage on a
public OSS bug tracker, where contributors filing bugs are precisely
who we want responded to.
Symptom: 5 of the last 13 bot-triage runs failed at the "Run Triage"
step with `Actor does not have write permissions to the repository`,
producing zero triage comments on issues opened by external
contributors.
Fix:
- `allowed_non_write_users: '*'` — the action input designed for this
exact case. Docs name "issue labeling" as the canonical example.
- Added `workflow_dispatch` with `issue_number` input so missed
issues can be re-triaged without close/reopen.
- Hardened the `if:` guard so the wheels-bot self-loop check no
longer evaluates `github.event.issue` on dispatch events.
Safe because the workflow runs with `permissions: contents: read`,
posts via an App token independent of the actor, and `claude_args`
restricts the model's shell to `gh` + read-only `git` + file reads.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a99f75f commit b6d6502
1 file changed
Lines changed: 19 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
6 | 12 | | |
7 | 13 | | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
11 | | - | |
| 17 | + | |
12 | 18 | | |
13 | 19 | | |
14 | 20 | | |
| |||
18 | 24 | | |
19 | 25 | | |
20 | 26 | | |
21 | | - | |
| 27 | + | |
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
| |||
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
43 | | - | |
44 | | - | |
| 49 | + | |
| 50 | + | |
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
| |||
52 | 58 | | |
53 | 59 | | |
54 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
55 | 69 | | |
56 | 70 | | |
57 | 71 | | |
58 | | - | |
| 72 | + | |
59 | 73 | | |
60 | 74 | | |
61 | 75 | | |
| |||
0 commit comments