Skip to content

Commit

Permalink
AAE-18009: skip grype scanning when grype-scan-enabled input is false (
Browse files Browse the repository at this point in the history
  • Loading branch information
atchertchian authored Nov 13, 2023
1 parent cff794d commit c70348a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/actions/docker-build-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ runs:
provenance: false

- name: Anchore Scan API Image
if: inputs.grype-scan-enabled == 'true'
uses: anchore/scan-action@24fd7c9060f3c96848dd1929fac8d796fb5ae4b4 # v3.3.6
id: scan
with:
Expand All @@ -138,11 +139,12 @@ runs:
severity-cutoff: critical

- name: Echo sarif
if: 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'
uses: github/codeql-action/upload-sarif@49abf0ba24d0b7953cb586944e918a0b92074c80 # v2.22.4
continue-on-error: true # do not fail if GHAS is not enabled
with:
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.6.0
v3.6.1

0 comments on commit c70348a

Please sign in to comment.