File tree 2 files changed +60
-0
lines changed 2 files changed +60
-0
lines changed Original file line number Diff line number Diff line change
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
+ on :
7
+ pull_request_target :
8
+ types :
9
+ - opened
10
+ branches :
11
+ - master
12
+ jobs :
13
+ Snyk_SCA_Scan :
14
+ runs-on : ubuntu-latest
15
+ strategy :
16
+ matrix :
17
+ node-version : [16.x]
18
+ steps :
19
+ - uses : actions/checkout@v2
20
+ - name : Setting up Node
21
+ uses : actions/setup-node@v1
22
+ with :
23
+ node-version : ${{ matrix.node-version }}
24
+ - name : Installing snyk-delta and dependencies
25
+ run : npm i -g snyk-delta
26
+ - uses : snyk/actions/setup@master
27
+ - name : Perform SCA Scan
28
+ continue-on-error : false
29
+ run : |
30
+ snyk test --all-projects --detection-depth=4 --exclude=docker,Dockerfile --severity-threshold=critical
31
+ env :
32
+ SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
Original file line number Diff line number Diff line change
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.
6
+ on :
7
+ pull_request_target :
8
+ types :
9
+ - opened
10
+ branches :
11
+ - master
12
+ jobs :
13
+ Snyk_SAST_Scan :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ - uses : snyk/actions/setup@master
18
+ - name : Perform Static Analysis Test
19
+ continue-on-error : true
20
+ run : |
21
+ snyk code test --all-projects --detection-depth=4 --exclude=docker,Dockerfile --severity-threshold=high
22
+ env :
23
+ SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
24
+ # The Following Requires Advanced Security License
25
+ # - name: Upload results to Github Code Scanning
26
+ # uses: github/codeql-action/upload-sarif@v1
27
+ # with:
28
+ # sarif_file: snyk_sarif
You can’t perform that action at this time.
0 commit comments