Skip to content

Commit 4a8ef55

Browse files
authored
chore: Add MetaMask security code scanner action (#458)
Adds https://github.com/MetaMask/action-security-code-scanner to this repository.
1 parent cb14332 commit 4a8ef55

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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 }}

0 commit comments

Comments
 (0)