File tree 2 files changed +22
-8
lines changed
2 files changed +22
-8
lines changed Original file line number Diff line number Diff line change 22
22
run : ${{ steps.download-actionlint.outputs.executable }} -color
23
23
shell : bash
24
24
25
+ analyse-code :
26
+ name : Code scanner
27
+ needs : check-workflows
28
+ uses : ./.github/workflows/security-code-scanner.yml
29
+ permissions :
30
+ actions : read
31
+ contents : read
32
+ security-events : write
33
+ secrets :
34
+ SECURITY_SCAN_METRICS_TOKEN : ${{ secrets.SECURITY_SCAN_METRICS_TOKEN }}
35
+ APPSEC_BOT_SLACK_WEBHOOK : ${{ secrets.APPSEC_BOT_SLACK_WEBHOOK }}
36
+
25
37
build-lint-test :
26
38
name : Build, lint, and test
27
39
uses : ./.github/workflows/build-lint-test.yml
31
43
runs-on : ubuntu-latest
32
44
needs :
33
45
- check-workflows
46
+ - analyse-code
34
47
- build-lint-test
35
48
outputs :
36
49
PASSED : ${{ steps.set-output.outputs.PASSED }}
Original file line number Diff line number Diff line change 1
1
name : MetaMask Security Code Scanner
2
2
3
3
on :
4
- push :
5
- branches :
6
- - main
7
- pull_request :
8
- branches :
9
- - main
4
+ workflow_call :
5
+ secrets :
6
+ SECURITY_SCAN_METRICS_TOKEN :
7
+ required : false
8
+ APPSEC_BOT_SLACK_WEBHOOK :
9
+ required : false
10
10
workflow_dispatch :
11
11
12
12
jobs :
13
13
run-security-scan :
14
+ name : Run security scan
14
15
runs-on : ubuntu-latest
15
16
permissions :
16
17
actions : read
17
18
contents : read
18
19
security-events : write
19
20
steps :
20
- - name : MetaMask Security Code Scanner
21
- uses : MetaMask/Security-Code-Scanner@main
21
+ - name : Analyse code
22
+ uses : MetaMask/action-security-code-scanner@v1
22
23
with :
23
24
repo : ${{ github.repository }}
24
25
paths_ignored : |
You can’t perform that action at this time.
0 commit comments