Skip to content

Commit

Permalink
change gha trivy scan
Browse files Browse the repository at this point in the history
  • Loading branch information
aimee-889 committed Jul 25, 2023
1 parent ffe0d19 commit 33fc374
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/imagetoghcr-on-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,10 @@ jobs:
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@7b7aa264d83dc58691451798b4d117d53d21edfe
with:
image-ref: ${{ steps.image_ref_lower.outputs.output }}
format: 'template'
template: '@/contrib/sarif.tpl'
output: 'trivy-results.sarif'
severity: 'CRITICAL,HIGH'
exit-code: 1
image-ref: "ghcr.io/${{ github.repository }}-default:${{ needs.branch_meta.outputs.sha }}"
format: "sarif"
output: "trivy-results.sarif"
severity: "CRITICAL,HIGH"
ignore-unfixed: true

- name: Upload Trivy scan results to GitHub Security tab
Expand Down

0 comments on commit 33fc374

Please sign in to comment.