From dcc183819fce02ba7eafec64e1d779a91220a84e Mon Sep 17 00:00:00 2001 From: Gabriel De Obieta Date: Thu, 30 Oct 2025 15:54:52 -0600 Subject: [PATCH] Make artifact upload conditional on provenance generation success Signed-off-by: Gabriel De Obieta --- slsa_with_provenance/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slsa_with_provenance/action.yml b/slsa_with_provenance/action.yml index 876d392..eeee062 100644 --- a/slsa_with_provenance/action.yml +++ b/slsa_with_provenance/action.yml @@ -129,7 +129,7 @@ runs: name: store git note - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 - if: always() + if: success() && (steps.handle_branch_push.outcome == 'success' || steps.handle_tag_push.outcome == 'success') with: name: prov_metadata path: ./metadata/