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
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ jobs:
cache: true

- name: Install cosign
uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad
with:
cosign-release: "v2.6.1"
uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0

- name: Install Syft
uses: anchore/sbom-action/[email protected]
Expand Down
12 changes: 5 additions & 7 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,26 +95,24 @@ signs:
cmd: cosign
args:
- "sign-blob"
- "--output-signature=${signature}"
- "--output-certificate=${certificate}"
- "--bundle=${signature}" # cosign v3+: bundles signature and certificate together
- "${artifact}"
- "--yes" # needed on cosign 2.0.0+
artifacts: archive
output: true
certificate: '{{ trimsuffix (trimsuffix .Env.artifact ".zip") ".tar.gz" }}.pem'
signature: "${artifact}.sigstore.json"

# Also sign checksums file for additional verification
- id: checksums
cmd: cosign
args:
- "sign-blob"
- "--output-signature=${signature}"
- "--output-certificate=${certificate}"
- "--bundle=${signature}" # cosign v3+: bundles signature and certificate together
- "${artifact}"
- "--yes"
artifacts: checksum
output: true
certificate: '{{ trimsuffix .Env.artifact ".txt" }}.pem'
signature: "${artifact}.sigstore.json"

# This section defines the release format.
archives:
Expand Down
Loading