Skip to content

Commit d0f0f15

Browse files
committed
chore: add Trivy vulnerability scanner to GitHub Actions workflow
1 parent 10c526d commit d0f0f15

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/php.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,17 @@ jobs:
6262
with:
6363
token: ${{ secrets.CODECOV_TOKEN }}
6464
files: ./coverage.xml
65+
66+
- name: Run Trivy vulnerability scanner in repo mode
67+
uses: aquasecurity/trivy-action@0.28.0
68+
with:
69+
scan-type: 'fs'
70+
ignore-unfixed: true
71+
format: 'sarif'
72+
output: 'trivy-results.sarif'
73+
severity: 'CRITICAL'
74+
75+
- name: Upload Trivy scan results to GitHub Security tab
76+
uses: github/codeql-action/upload-sarif@v3
77+
with:
78+
sarif_file: 'trivy-results.sarif'

0 commit comments

Comments
 (0)