Skip to content

Commit

Permalink
publish-image: support push-to-prime=false
Browse files Browse the repository at this point in the history
Do not check provenance when push-to-prime=false.

Signed-off-by: Sam Wang (holyspectral) <[email protected]>
  • Loading branch information
holyspectral committed Dec 11, 2024
1 parent 1ddf5ae commit 530dfbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions actions/publish-image/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 530dfbf

Please sign in to comment.