Skip to content

Commit

Permalink
disable trivy sarif upload (#86)
Browse files Browse the repository at this point in the history
* disable sarif upload

* disable sarif upload

* change exit-code

---------

Co-authored-by: niroz89 <[email protected]>
  • Loading branch information
zodilib and niroz89 authored May 2, 2024
1 parent ff3fcb1 commit e2027d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -328,14 +328,14 @@ jobs:
hide-progress: false
format: 'sarif'
output: 'trivy-results.sarif'
exit-code: '1'
exit-code: '0'
ignore-unfixed: true
severity: 'CRITICAL,HIGH'

# https://github.com/aquasecurity/trivy/issues/5003
- name: Remove git from url for sarif uploading
shell: bash
run: |
run: |
sed -i 's#git::https:/##g' trivy-results.sarif
- name: Upload Trivy scan results to GitHub Security tab
Expand Down

0 comments on commit e2027d8

Please sign in to comment.