Merge pull request #4147 from zhzhuang-zju/uploadsarif
ci: upload trivy scan results to GitHub Security tab
This commit is contained in:
commit
dcf0685f88
|
@ -33,7 +33,11 @@ jobs:
|
|||
uses: aquasecurity/trivy-action@0.12.0
|
||||
with:
|
||||
image-ref: 'docker.io/karmada/${{ matrix.target }}:latest'
|
||||
format: 'table'
|
||||
format: 'sarif'
|
||||
ignore-unfixed: true
|
||||
vuln-type: 'os,library'
|
||||
exit-code: '1'
|
||||
output: 'trivy-results.sarif'
|
||||
- name: Upload Trivy scan results to GitHub Security tab
|
||||
uses: github/codeql-action/upload-sarif@v2
|
||||
with:
|
||||
sarif_file: 'trivy-results.sarif'
|
||||
|
|
Loading…
Reference in New Issue