Skip to content

Commit

Permalink
Verify SARIF file existence before upload
Browse files Browse the repository at this point in the history
RISDEV-4542
  • Loading branch information
hamo225 committed Aug 14, 2024
1 parent 0c7c868 commit b788928
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ jobs:
output: "trivy-results.sarif"
severity: "CRITICAL,HIGH"

- name: Verify SARIF file exists
run: ls -la trivy-results.sarif

- name: Check trivy results
run: |
if grep -qE 'HIGH|CRITICAL' trivy-results.sarif; then
Expand Down

0 comments on commit b788928

Please sign in to comment.