Skip to content

Commit 536c215

Browse files
committed
ci: integrate Trivy vulnerability scanning into CI workflow
- Add a vulnerability scanning job to the workflow using Trivy to detect critical and high severity issues Signed-off-by: appleboy <appleboy.tw@gmail.com>
1 parent 10bdc64 commit 536c215

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/testing.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,20 @@ jobs:
5454
5555
- name: Upload coverage to Codecov
5656
uses: codecov/codecov-action@v5
57+
58+
vulnerability-scanning:
59+
runs-on: ubuntu-latest
60+
steps:
61+
- uses: actions/checkout@v4
62+
with:
63+
fetch-depth: 0
64+
65+
- name: Run Trivy vulnerability scanner in repo mode
66+
uses: aquasecurity/trivy-action@0.28.0
67+
with:
68+
scan-type: 'fs'
69+
ignore-unfixed: true
70+
format: 'sarif'
71+
output: 'trivy-results.sarif'
72+
exit-code: '1'
73+
severity: 'CRITICAL,HIGH'

0 commit comments

Comments
 (0)