Skip to content

Commit

Permalink
ci: fix image scan result upload (#41)
Browse files Browse the repository at this point in the history
* ci: fix scanning

* ci: fix scanning

* ci: 🌿

* ci: add `format`

* ci: add more inputs

* ci: remove test
  • Loading branch information
JoshuaLicense authored Jul 11, 2024
1 parent f47ef74 commit 336a068
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,12 @@ jobs:
uses: aquasecurity/trivy-action@0.23.0
with:
image-ref: ${{ steps.build-and-push.outputs.imageid }}
format: 'sarif'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
format: "sarif"
output: "trivy-results.sarif"
severity: "MEDIUM,HIGH,CRITICAL"
limit-severities-for-sarif: true

- name: Upload Trivy scan results to GitHub Code Scanning
if: ${{ always() && !cancelled() && steps.scan.outcome == 'success' || steps.scan.outcome == 'failure' }}
Expand Down

0 comments on commit 336a068

Please sign in to comment.