Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ jobs:
go-version-file: go.mod

- uses: sigstore/cosign-installer@6f9f17788090df1f26f669e9d70d6ae9567deba6 # v4.1.2
with:
# Pin to the maintained v2.x line. cosign v3 auto-loads a signing
# config and forces the new single-file bundle format, which breaks
# the classic detached .sig/.pem signing that install.sh and
# install.ps1 verify. See the signs block in .goreleaser.yml.
cosign-release: v2.6.4

- uses: anchore/sbom-action/download-syft@e22c389904149dbc22b58101806040fa8d37a610 # v0.24.0

Expand Down
10 changes: 5 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ sboms:
- artifacts: archive

signs:
# Keep cosign's classic output (separate .sig + .pem) instead of the new
# single-file bundle: install.sh and install.ps1 verify the checksums with
# `cosign verify-blob --signature ...sig --certificate ...pem`, which the
# bundle format would break.
# Classic detached signature: produces ${artifact}.sig and ${artifact}.pem,
# which install.sh and install.ps1 verify with
# `cosign verify-blob --signature ...sig --certificate ...pem`. cosign is
# pinned to the v2.x line in release.yml so this keeps working; cosign v3
# forces the single-file bundle format instead.
- cmd: cosign
artifacts: checksum
args:
- "sign-blob"
- "--yes"
- "--new-bundle-format=false"
- "--output-signature=${signature}"
- "--output-certificate=${certificate}"
- "${artifact}"
Expand Down