Skip to content

Commit ea82424

Browse files
authored
fix: get cosign from sigstore (#578)
1 parent a1bca46 commit ea82424

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Justfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ rechunker := "ghcr.io/hhd-dev/rechunk:v1.2.4@sha256:8a84bd5a029681aa8db523f927b7
4646
[private]
4747
qemu := "ghcr.io/qemus/qemu:7.23@sha256:43993c9772b3cd2325829587f4dd01901388b7fcdc335bb817af714957d81e61"
4848
[private]
49-
cosign-installer := "cgr.dev/chainguard/cosign:latest@sha256:29d514586cc8a82899b5856362f61188e19d05df420ae7f0f2b1288486bf5c02"
49+
cosign-installer := "ghcr.io/sigstore/cosign/cosign:v2.4.1"
5050
[private]
5151
syft-installer := "ghcr.io/anchore/syft:v1.33.0@sha256:f94e5d9fce1f2278491a8e3a63bd5f6ddb81fdfdbb8bf7a1637565c1d5344357"
5252

@@ -491,18 +491,18 @@ install-cosign:
491491

492492
# Get Binary
493493
COSIGN_CONTAINER_ID="$({{ PODMAN }} create {{ cosign-installer }} bash)"
494-
{{ PODMAN }} cp "${COSIGN_CONTAINER_ID}":/usr/bin/cosign "$TMPDIR"/cosign
494+
{{ PODMAN }} cp "${COSIGN_CONTAINER_ID}":/ko-app/cosign "$TMPDIR"/cosign
495495
{{ PODMAN }} rm -f "${COSIGN_CONTAINER_ID}"
496496
{{ PODMAN }} rmi -f {{ cosign-installer }}
497497

498498
# Install
499499
{{ SUDOIF }} install -c -m 0755 "$TMPDIR"/cosign /usr/local/bin/cosign
500500

501501
# Verify Cosign Image Signatures if needed
502-
if ! cosign verify --certificate-oidc-issuer=https://token.actions.githubusercontent.com --certificate-identity=https://github.com/chainguard-images/images/.github/workflows/release.yaml@refs/heads/main cgr.dev/chainguard/cosign >/dev/null; then
503-
echo "NOTICE: Failed to verify cosign image signatures."
504-
exit 1
505-
fi
502+
# if ! cosign verify --certificate-oidc-issuer=https://token.actions.githubusercontent.com --certificate-identity=https://github.com/chainguard-images/images/.github/workflows/release.yaml@refs/heads/main cgr.dev/chainguard/cosign >/dev/null; then
503+
# echo "NOTICE: Failed to verify cosign image signatures."
504+
# exit 1
505+
# fi
506506
fi
507507

508508
# Login to GHCR

0 commit comments

Comments
 (0)