From c70348a8786844206a16d83d5ebf18fa3277e594 Mon Sep 17 00:00:00 2001 From: Anahide Tchertchian <608958+atchertchian@users.noreply.github.com> Date: Mon, 13 Nov 2023 17:19:47 +0100 Subject: [PATCH] AAE-18009: skip grype scanning when grype-scan-enabled input is false (#343) --- .github/actions/docker-build-image/action.yml | 4 +++- version.txt | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/actions/docker-build-image/action.yml b/.github/actions/docker-build-image/action.yml index 746b40755..9a1deddc3 100644 --- a/.github/actions/docker-build-image/action.yml +++ b/.github/actions/docker-build-image/action.yml @@ -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: @@ -138,11 +139,12 @@ runs: severity-cutoff: critical - name: Echo sarif + if: inputs.grype-scan-enabled == 'true' shell: bash run: echo "$(