diff --git a/.github/workflows/security-code-scanner.yml b/.github/workflows/security-code-scanner.yml new file mode 100644 index 000000000000..6b75b0d98bd0 --- /dev/null +++ b/.github/workflows/security-code-scanner.yml @@ -0,0 +1,36 @@ +name: "MetaMask Security Code Scanner" + +on: + push: + branches: [ 'develop' ] + pull_request: + branches: [ 'develop' ] + +jobs: + run-security-scan: + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + steps: + - name: MetaMask Security Code Scanner + uses: MetaMask/Security-Code-Scanner@main + with: + repo: ${{ github.repository }} + paths_ignored: | + test/ + docs/ + storybook/ + .storybook/ + '**/*.test.js' + '**/*.test.ts' + '**/*.test.jsx' + '**/*.test.tsx' + '**/*.stories.tsx' + development/chromereload.js + node_modules + rules_excluded: + example + mixpanel_project_token: ${{secrets.SECURITY_CODE_SCANNER_MIXPANEL_TOKEN}} + slack_webhook: ${{ secrets.APPSEC_BOT_SLACK_WEBHOOK }}