Skip to content

Commit cc9adfd

Browse files
authored
Merge pull request #6 from madrisan/trivy_scan
ci: github/workflows: add trivy scan
2 parents 477a37a + d54d55e commit cc9adfd

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/build-checks.yml

+15
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,18 @@ jobs:
3737
# step 4: run test
3838
- name: Run the tests
3939
run: make test
40+
41+
# step 5: trivy scan
42+
- name: Run Trivy vulnerability scanner
43+
uses: aquasecurity/[email protected]
44+
with:
45+
scan-type: 'fs'
46+
ignore-unfixed: true
47+
format: 'sarif'
48+
output: 'trivy-results.sarif'
49+
severity: 'CRITICAL,HIGH'
50+
51+
- name: Upload Trivy scan results to GitHub Security tab
52+
uses: github/codeql-action/upload-sarif@v3
53+
with:
54+
sarif_file: 'trivy-results.sarif'

0 commit comments

Comments
 (0)