File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : MetaMask Security Code Scanner
2+
3+ on :
4+ push :
5+ branches : ['main']
6+ pull_request :
7+ branches : ['main']
8+ workflow_call :
9+ secrets :
10+ SECURITY_SCAN_METRICS_TOKEN :
11+ required : false
12+ APPSEC_BOT_SLACK_WEBHOOK :
13+ required : false
14+ workflow_dispatch :
15+
16+ jobs :
17+ run-security-scan :
18+ name : Run security scan
19+ runs-on : ubuntu-latest
20+ permissions :
21+ actions : read
22+ contents : read
23+ security-events : write
24+ steps :
25+ - name : Analyze code
26+ uses : MetaMask/action-security-code-scanner@v1
27+ with :
28+ repo : ${{ github.repository }}
29+ paths_ignored : |
30+ '**/*.test.js*'
31+ '**/*.test.ts*'
32+ '**/docs/'
33+ '**/playwright.config.ts'
34+ '**/test/'
35+ '**/vitest.config*.ts'
36+ node_modules
37+ project_metrics_token : ${{ secrets.SECURITY_SCAN_METRICS_TOKEN }}
38+ slack_webhook : ${{ secrets.APPSEC_BOT_SLACK_WEBHOOK }}
You can’t perform that action at this time.
0 commit comments