Commit 25c3d08
ci: add anthropics/claude-code-security-review on every PR
Adds AI-driven security review to the existing static-analysis pipeline
(CodeQL, gosec, Trivy, npm audit, gitleaks, Dependency Review, Scorecard).
Claude reads the diff and flags auth/authz logic bugs, business-logic
flaws, AI-class antipatterns, and prompt-injection vectors that pattern
matchers can't catch. Posts inline review comments.
Matches the repo's existing security-workflow style:
- step-security/harden-runner with audit egress
- permissions: {} at workflow level, scoped per-job
- concurrency control
- third-party actions SHA-pinned per OWASP CI/CD-SEC-2
The action has no tagged releases yet (May 2026), pinned to the head
SHA at time of authoring. Bump when v1 is cut.
One-time setup in repo settings (documented in the workflow header):
1. Add the CLAUDE_API_KEY repo secret (Anthropic API key with Claude
Code entitlement).
2. Actions -> General -> "Require approval for all external contributors"
on the fork-PR setting. The repo is PUBLIC and the action is not
hardened against prompt injection in untrusted PR diffs.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c291772 commit 25c3d08
1 file changed
Lines changed: 59 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
0 commit comments