File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 64
64
CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
65
65
run : |
66
66
JACOCO_SOURCE_PATH=src/main/java ./cc-test-reporter format-coverage target/site/jacoco/jacoco.xml --input-type jacoco
67
- ./cc-test-reporter upload-coverage
67
+ ./cc-test-reporter upload-coverage
68
+
69
+ # Install Snyk CLI
70
+ - name : Install Snyk CLI
71
+ run : npm install -g snyk
72
+
73
+ # Run Snyk to check for vulnerabilities
74
+ - name : Run Snyk to check for vulnerabilities
75
+ continue-on-error : true
76
+ env :
77
+ SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
78
+ run : snyk test --all-projects --severity-threshold=high --sarif-file-output=snyk.sarif
79
+
80
+ - name : Upload result to GitHub Code Scanning
81
+ uses : github/codeql-action/upload-sarif@v3
82
+ with :
83
+ sarif_file : snyk.sarif
You can’t perform that action at this time.
0 commit comments