File tree 2 files changed +25
-37
lines changed 2 files changed +25
-37
lines changed Original file line number Diff line number Diff line change 1
1
name : Snyk Software Composition Analysis Scan
2
- # This git workflow leverages Snyk actions to perform a Software Composition
3
- # Analysis scan on our Opensource libraries upon Pull Requests to Master &
4
- # Develop branches. We use this as a control to prevent vulnerable packages
5
- # from being introduced into the codebase.
6
2
on :
7
- pull_request_target :
8
- types :
9
- - opened
10
- branches :
3
+ push :
4
+ branches :
5
+ - ' *'
6
+ pull_request :
7
+ branches :
11
8
- master
12
9
- develop
13
10
jobs :
@@ -17,17 +14,15 @@ jobs:
17
14
matrix :
18
15
node-version : [16.x]
19
16
steps :
20
- - uses : actions/checkout@v2
17
+ - uses : actions/checkout@v3
21
18
- name : Setting up Node
22
- uses : actions/setup-node@v1
19
+ # - name: Use Node.js ${{ matrix.node-version }}
20
+ uses : actions/setup-node@v3
23
21
with :
24
22
node-version : ${{ matrix.node-version }}
25
- - name : Installing snyk-delta and dependencies
26
- run : npm i -g snyk-delta
27
- - uses : snyk/actions/setup@master
28
- - name : Perform SCA Scan
29
- continue-on-error : false
30
- run : |
31
- snyk test --all-projects --detection-depth=4 --exclude=docker,Dockerfile --severity-threshold=critical
23
+ - name : Run Snyk to check for opensource vulnerabilities
24
+ uses : snyk/actions/node@master
32
25
env :
33
- SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
26
+ SNYK_TOKEN : ${{ secrets.SNYK_API_TOKEN }}
27
+ with :
28
+ args : --debug --strict-out-of-sync=false --detection-depth=6 --exclude=docker,Dockerfile --severity-threshold=critical
Original file line number Diff line number Diff line change 1
1
name : Snyk Static Analysis Scan
2
- # This git workflow leverages Snyk actions to perform a Static Application
3
- # Testing scan (SAST) on our first-party code upon Pull Requests to Master &
4
- # Develop branches. We use this as a control to prevent vulnerabilities
5
- # from being introduced into the codebase.
2
+ # This SAST (Static Application Security Testing) scan is used to scan
3
+ # our first-party code for security vulnerabilities
6
4
on :
7
- pull_request_target :
8
- types :
9
- - opened
10
- branches :
5
+ push :
6
+ branches :
7
+ - ' *'
8
+ pull_request :
9
+ branches :
11
10
- master
12
11
- develop
13
12
jobs :
14
- Snyk_SAST_Scan :
13
+ Snyk_SAST_Scan :
15
14
runs-on : ubuntu-latest
16
15
steps :
17
- - uses : actions/checkout@v2
16
+ - uses : actions/checkout@v3
18
17
- uses : snyk/actions/setup@master
19
18
- name : Perform Static Analysis Test
20
- continue-on-error : true
21
- run : |
22
- snyk code test --all-projects --detection-depth=4 --exclude=docker,Dockerfile --severity-threshold=high
23
19
env :
24
- SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
25
- # The Following Requires Advanced Security License
26
- # - name: Upload results to Github Code Scanning
27
- # uses: github/codeql-action/upload-sarif@v1
28
- # with:
29
- # sarif_file: snyk_sarif
20
+ SNYK_TOKEN : ${{ secrets.SNYK_API_TOKEN }}
21
+ continue-on-error : true
22
+ run : snyk code test --strict-out-of-sync=false --detection-depth=6 --exclude=docker,Dockerfile --severity-threshold=high
You can’t perform that action at this time.
0 commit comments