Skip to content

Commit dde2b56

Browse files
committed
ci: integrate Trivy vulnerability scanning into CI workflow
- Add a vulnerability scanning job using Trivy to the workflow Signed-off-by: appleboy <appleboy.tw@gmail.com>
1 parent cb1980a commit dde2b56

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/testing.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,19 @@ jobs:
6363
uses: codecov/codecov-action@v5
6464
with:
6565
flags: ${{ matrix.os }},go-${{ matrix.go }}
66+
vulnerability-scanning:
67+
runs-on: ubuntu-latest
68+
steps:
69+
- uses: actions/checkout@v5
70+
with:
71+
fetch-depth: 0
72+
73+
- name: Run Trivy vulnerability scanner in repo mode
74+
uses: aquasecurity/trivy-action@0.32.0
75+
with:
76+
scan-type: 'fs'
77+
ignore-unfixed: true
78+
format: 'sarif'
79+
output: 'trivy-results.sarif'
80+
exit-code: '1'
81+
severity: 'CRITICAL,HIGH'

0 commit comments

Comments
 (0)