Skip to content

Test: Claude Code Security Review baseline #14

Test: Claude Code Security Review baseline

Test: Claude Code Security Review baseline #14

name: Claude Code Security Review
on:
pull_request:
branches: [main]
permissions:
contents: read
pull-requests: write
jobs:
security-review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
fetch-depth: 2
- uses: anthropics/claude-code-security-review@main
id: scan
with:
claude-api-key: ${{ secrets.CLAUDE_API_KEY }}
- name: Fail if security findings
if: steps.scan.outputs.findings-count > 0
run: |
echo "::error::Security review found ${{ steps.scan.outputs.findings-count }} finding(s). Review the comments on this PR."
exit 1