From 1eda18ea6e17e4e2900a712a6d4cfe30c36f36e8 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Mon, 2 Mar 2026 09:39:54 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7(ci)=20introduce=20Claude=20securit?= =?UTF-8?q?y=20review=20GitHub=20Action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add automated security review on new pull requests to strengthen early detection of potential vulnerabilities. Leverage Claude to help identify security issues and highlight areas requiring special attention. --- .github/workflows/security.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/security.yaml diff --git a/.github/workflows/security.yaml b/.github/workflows/security.yaml new file mode 100644 index 00000000..19a2b84d --- /dev/null +++ b/.github/workflows/security.yaml @@ -0,0 +1,29 @@ +# /!\ +# Security Note: This action is not hardened against prompt injection attacks and should only be used +# to review trusted PRs. Configure your repository with "Require approval for all external contributors" +# to ensure workflows only run after a maintainer has reviewed the PR. +name: Security Review + +permissions: + pull-requests: write # Needed for leaving PR comments + contents: read + +on: + pull_request: + branches: + - 'main' + +jobs: + security: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + with: + ref: ${{ github.event.pull_request.head.sha || github.sha }} + fetch-depth: 2 + + - uses: anthropics/claude-code-security-review@0c6a49f1fa56a1d472575da86a94dbc1edb78eda + with: + comment-pr: true + exclude-directories: docs,gitlint,LICENSES,bin + claude-api-key: ${{ secrets.CLAUDE_API_KEY }}