From 4a11a2b9d6dec0afab6be320f49441df05dc35f1 Mon Sep 17 00:00:00 2001 From: MetaMask Security Bot Date: Tue, 1 Sep 2026 07:45:03 +0000 Subject: [PATCH] chore: add MetaMask Security Code Scanner workflow This PR adds the MetaMask Security Code Scanner workflow to enable automated security scanning of the codebase. The scanner will run on: - Push to main branch - Pull requests to main branch - Manual workflow dispatch To configure the scanner for your repository's specific needs, please review the workflow file and adjust as necessary. --- .github/workflows/security-code-scanner.yml | 51 +++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/security-code-scanner.yml diff --git a/.github/workflows/security-code-scanner.yml b/.github/workflows/security-code-scanner.yml new file mode 100644 index 0000000..1b4df7b --- /dev/null +++ b/.github/workflows/security-code-scanner.yml @@ -0,0 +1,51 @@ +name: MetaMask Security Code Scanner + +on: + push: + branches: + - main + pull_request: + branches: + - main + workflow_call: + secrets: + SECURITY_SCAN_METRICS_TOKEN: + required: false + APPSEC_BOT_SLACK_WEBHOOK: + required: false + workflow_dispatch: + +jobs: + security-scan: + uses: MetaMask/action-security-code-scanner/.github/workflows/security-scan.yml@1cd598629833fa9fc1694f03abfce8d21b72eb5d # v2 + permissions: + actions: read + contents: read + security-events: write + with: + repo: ${{ github.repository }} + scanner-ref: 'v2' + paths-ignored: | + node_modules + **/node_modules/** + **/__snapshots__/** + __snapshots_linux__ + **/__stories__/** + .storybook/ + **/*.test.ts + **/*.test.tsx + **/*.test.js + **/*.test.jsx + **/*.spec.ts + **/*.spec.tsx + **/*.spec.js + **/*.spec.jsx + **/test*/** + **/e2e/** + **/tests/** + languages-config: | + [ + ] + secrets: + project-metrics-token: ${{ secrets.SECURITY_SCAN_METRICS_TOKEN }} + slack-webhook: ${{ secrets.APPSEC_BOT_SLACK_WEBHOOK }}