Skip to content

Commit

Permalink
Merge pull request #43 from ahennr/trivy-results
Browse files Browse the repository at this point in the history
Configure trivy action to upload results to security tab
  • Loading branch information
buehner authored Jan 2, 2024
2 parents 4343dca + 8eb3573 commit 0966018
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 0966018

Please sign in to comment.