diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml new file mode 100644 index 000000000..c0f297baa --- /dev/null +++ b/.github/workflows/security.yml @@ -0,0 +1,22 @@ +name: Security Review + +permissions: + pull-requests: write # Needed for leaving PR comments + contents: read + +on: + pull_request: + +jobs: + security: + 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 + with: + comment-pr: true + claude-api-key: ${{ secrets.CLAUDE_API_KEY }}