From 13e83d301dacbab7d7fef73022b4c20caf7f6335 Mon Sep 17 00:00:00 2001 From: Benjamin Sherman Date: Mon, 22 Apr 2024 13:48:20 -0500 Subject: [PATCH] fix(ci): split cosign steps (#6) A step can't have both "uses" and "run" so the cosign step needed to be split. --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d5be3bc..d41d98d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -137,9 +137,10 @@ jobs: # to consume. For more details, review the image signing section of the README. # Sign container + - uses: sigstore/cosign-installer@v3.4.0 + if: github.event_name != 'pull_request' - name: Sign container image - uses: sigstore/cosign-installer@v3.4.0 if: github.event_name != 'pull_request' run: | cosign sign -y --key env://COSIGN_PRIVATE_KEY ${{ steps.registry_case.outputs.lowercase }}/${{ steps.build_image.outputs.image }}@${TAGS}