Skip to content

Commit 3d66988

Browse files
authored
Change trivy ouput to sarif (#72)
1 parent 0d93045 commit 3d66988

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/maven-service-build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,9 @@ jobs:
6868
with:
6969
name: bom.json
7070
- name: Run Trivy with SBOM
71-
run: trivy sbom --exit-code 1 --severity CRITICAL,HIGH ./bom.json
71+
run: trivy sbom --severity CRITICAL,HIGH --format sarif -o trivy-report.sarif ./bom.json
72+
73+
- name: Upload SARIF report
74+
uses: github/codeql-action/upload-sarif@v2
75+
with:
76+
sarif_file: trivy-report.sarif

0 commit comments

Comments
 (0)