From 5d09d08c5665b099314932d915bb6891e5269677 Mon Sep 17 00:00:00 2001 From: Anahide Tchertchian <608958+atchertchian@users.noreply.github.com> Date: Mon, 13 Nov 2023 16:44:58 +0100 Subject: [PATCH] AAE-18009: skip grype scanning when grype-scan-enabled input is false --- .github/actions/docker-build-image/action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 "$(