File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ name : snyk scans
3
+
4
+ on :
5
+ push :
6
+ branches :
7
+ - main
8
+ pull_request :
9
+ paths :
10
+ - ' .github/workflows/snyk-scans.yml'
11
+
12
+ jobs :
13
+ snyk-scan :
14
+ runs-on : ubuntu-20.04
15
+ steps :
16
+ - uses : actions/checkout@v3
17
+
18
+ - name : Set up Snyk
19
+ uses : snyk/actions/setup@master
20
+ env :
21
+ SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
22
+
23
+ - name : Run Snyk to check for vulnerabilities
24
+ run : |
25
+ snyk test --all-projects \
26
+ --severity-threshold=high \
27
+ --exclude=docs,cmake,ext \
28
+ --detection-depth=5
29
+ env :
30
+ SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
31
+ continue-on-error : false
32
+
33
+ - name : Upload result to GitHub Code Scanning
34
+ uses : github/codeql-action/upload-sarif@v2
35
+ with :
36
+ sarif_file : snyk.sarif
You can’t perform that action at this time.
0 commit comments