From 530dfbf73a9ce4f825e70437054524313245646f Mon Sep 17 00:00:00 2001 From: "Sam Wang (holyspectral)" Date: Wed, 11 Dec 2024 10:49:16 -0500 Subject: [PATCH] publish-image: support push-to-prime=false Do not check provenance when push-to-prime=false. Signed-off-by: Sam Wang (holyspectral) --- actions/publish-image/action.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/actions/publish-image/action.yaml b/actions/publish-image/action.yaml index 2d636776..697afae7 100644 --- a/actions/publish-image/action.yaml +++ b/actions/publish-image/action.yaml @@ -203,6 +203,7 @@ runs: - name: Attest provenance shell: bash + if: ${{ inputs.push-to-prime == true || inputs.push-to-prime == 'true' }} run: | if slsactl download provenance --format=slsav1 "${IMG_NAME}" > provenance-slsav1.json; then cat provenance-slsav1.json