Skip to content

Commit 975a389

Browse files
committed
ci: integrate Trivy scan results with GitHub Security tab
- Add a step to upload Trivy scan results to the GitHub Security tab using the upload-sarif action Signed-off-by: appleboy <[email protected]>
1 parent 203bffc commit 975a389

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/testing.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ jobs:
9292
- uses: actions/checkout@v4
9393
with:
9494
fetch-depth: 0
95+
9596
- name: Run Trivy vulnerability scanner in repo mode
9697
uses: aquasecurity/[email protected]
9798
with:
@@ -102,3 +103,7 @@ jobs:
102103
exit-code: '1'
103104
severity: 'CRITICAL,HIGH'
104105

106+
- name: Upload Trivy scan results to GitHub Security tab
107+
uses: github/codeql-action/upload-sarif@v3
108+
with:
109+
sarif_file: 'trivy-results.sarif'

0 commit comments

Comments
 (0)