diff --git a/.github/workflows/.reusable-docker-build.yml b/.github/workflows/.reusable-docker-build.yml index 558afee50bd6..806cf977045b 100644 --- a/.github/workflows/.reusable-docker-build.yml +++ b/.github/workflows/.reusable-docker-build.yml @@ -149,6 +149,7 @@ jobs: - name: Scan ${{ steps.image-tag.outputs.image-tag }} image id: trivy uses: ./.github/actions/trivy-scan-image + if: inputs.scan with: image-tag: ${{ steps.image-tag.outputs.image-tag }} category: ${{ inputs.image-name }}