Skip to content

Commit

Permalink
AAE-18257: don't upload sarif file on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
atchertchian committed Nov 20, 2023
1 parent f3fd060 commit a08626f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/docker-build-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@ runs:
severity-cutoff: critical

- name: Echo sarif
if: inputs.grype-scan-enabled == 'true'
if: always() && inputs.grype-scan-enabled == 'true'
shell: bash
run: echo "$(<results.sarif )"

- name: Upload SARIF Files
if: always() && inputs.grype-scan-enabled == 'true'
if: always() && inputs.grype-scan-enabled == 'true' && github.event_name == 'push'
uses: github/codeql-action/upload-sarif@66b90a5db151a8042fa97405c6cf843bbe433f7b # v2.22.7
continue-on-error: true # do not fail if GHAS is not enabled
with:
Expand Down

0 comments on commit a08626f

Please sign in to comment.