Skip to content

Commit 4e795ce

Browse files
committed
fix: don't cosign unless signing is on in ci
Signed-off-by: Sam Gammon <sam@elide.ventures>
1 parent ccdcede commit 4e795ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/job.native-image.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ jobs:
287287
- name: "Setup: Gradle Settings (Globals)"
288288
run: cp -fv /home/ci-agent/gradle-ci.properties ~/.gradle/gradle.properties || echo "No global settings."
289289
- name: "Setup: Cosign"
290-
if: inputs.pack
290+
if: inputs.pack && inputs.signing
291291
uses: sigstore/cosign-installer@d7543c93d881b35a8faa02e8e3605f69b7a1ce62 # v3.10.0
292292
- name: "Build Environment"
293293
run: file Makefile && make info CI=yes 2>&1 | tee build-info.txt
@@ -355,7 +355,7 @@ jobs:
355355
run: |
356356
echo "hashes=$(sha256sum ./packages/cli/build/native/nativeOptimizedCompile/elide | base64 -w0)" >> "$GITHUB_OUTPUT"
357357
- name: "🛠️ Release: Package"
358-
if: inputs.pack
358+
if: inputs.pack && inputs.signing
359359
run: bash ./tools/scripts/release/build-release.sh
360360
env:
361361
COSIGN_KEY: ${{ secrets.COSIGN_KEY }}

0 commit comments

Comments
 (0)