Commit d6f176f
authored
ci(claude-review): harden against Dependabot-controlled content (#875)
## Summary
- Untrusted-content prompt clause: PR title/body/commit messages/release notes are treated as data, not instructions (primary prompt-injection mitigation).
- exclude_comments_by_actor: "dependabot[bot]" — defense-in-depth so the bot's comment prose isn't read as instructions.
- Drop unused id-token: write (federation-only; workflow uses claude_code_oauth_token). Remaining perms read-only.
## Validation
- Cross-family review: opencode (zai/glm-5.2) — APPROVE, no Critical/Major, all ACs independently verified
- Correctness verified against pinned action action.yml (SHA 558b1d6)
- YAML valid; actionlint clean; CI all green
- Known limitation (subprocess env-scrub) documented in PR body as a potential follow-up
Closes #8751 parent 33a21ae commit d6f176f
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
56 | 66 | | |
57 | 67 | | |
58 | 68 | | |
| |||
0 commit comments