Skip to content

Commit

Permalink
configure trivy action to upload results to security tab
Browse files Browse the repository at this point in the history
  • Loading branch information
ahennr committed Dec 20, 2023
1 parent 4343dca commit 8eb3573
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@ jobs:
- name: Run trivy
uses: aquasecurity/trivy-action@master
with:
image-ref: 'geoserver-docker.osgeo.org/geoserver:${{ github.sha }}'
format: 'table'
ignore-unfixed: true
vuln-type: 'os,library'
image-ref: 'geoserver-docker.osgeo.org/geoserver:${{ github.sha }}'
output: 'trivy-results.sarif'
severity: 'CRITICAL,HIGH'
vuln-type: 'os,library'
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results.sarif'

0 comments on commit 8eb3573

Please sign in to comment.