Skip to content

Commit b16c1df

Browse files
authored
Update pull_request.yml
Added Trivy scanning
1 parent cb5289a commit b16c1df

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/pull_request.yml

+14
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,17 @@ jobs:
2929

3030
- name: Go Build amd64
3131
run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o kubectl-parallel-exec-amd64
32+
33+
- name: Run Trivy vulnerability scanner in repo mode
34+
uses: aquasecurity/trivy-action@master
35+
with:
36+
scan-type: 'fs'
37+
ignore-unfixed: true
38+
format: 'sarif'
39+
output: 'trivy-results.sarif'
40+
severity: 'CRITICAL'
41+
42+
- name: Upload Trivy scan results to GitHub Security tab
43+
uses: github/codeql-action/upload-sarif@v2
44+
with:
45+
sarif_file: 'trivy-results.sarif'

0 commit comments

Comments
 (0)