Skip to content

Commit bbbad1a

Browse files
authored
Update Goreleaser and Cosign (#839)
<!-- Provide a brief summary of your changes --> ## Motivation and Context <!-- Why is this change needed? What problem does it solve? --> The following PR bumps cosign and updates Goreleaser to reflect that. Follows https://goreleaser.com/blog/cosign-v3/#updating-your-goreleaser-configuration <!-- Have you tested this in a real application? Which scenarios were tested? --> ## Breaking Changes <!-- Will users need to update their code or configurations? --> ## Types of changes <!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update ## Checklist <!-- Go over all the following points, and put an `x` in all the boxes that apply. --> - [ ] I have read the [MCP Documentation](https://modelcontextprotocol.io) - [ ] My code follows the repository's style guidelines - [ ] New and existing tests pass locally - [ ] I have added appropriate error handling - [ ] I have added or updated documentation as needed ## Additional context <!-- Add any other context, implementation notes, or design decisions --> Signed-off-by: Radoslav Dimitrov <[email protected]>
1 parent c54a5ac commit bbbad1a

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ jobs:
2525
cache: true
2626

2727
- name: Install cosign
28-
uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad
29-
with:
30-
cosign-release: "v2.6.1"
28+
uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
3129

3230
- name: Install Syft
3331
uses: anchore/sbom-action/[email protected]

.goreleaser.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,26 +95,24 @@ signs:
9595
cmd: cosign
9696
args:
9797
- "sign-blob"
98-
- "--output-signature=${signature}"
99-
- "--output-certificate=${certificate}"
98+
- "--bundle=${signature}" # cosign v3+: bundles signature and certificate together
10099
- "${artifact}"
101100
- "--yes" # needed on cosign 2.0.0+
102101
artifacts: archive
103102
output: true
104-
certificate: '{{ trimsuffix (trimsuffix .Env.artifact ".zip") ".tar.gz" }}.pem'
105-
103+
signature: "${artifact}.sigstore.json"
104+
106105
# Also sign checksums file for additional verification
107106
- id: checksums
108107
cmd: cosign
109108
args:
110109
- "sign-blob"
111-
- "--output-signature=${signature}"
112-
- "--output-certificate=${certificate}"
110+
- "--bundle=${signature}" # cosign v3+: bundles signature and certificate together
113111
- "${artifact}"
114112
- "--yes"
115113
artifacts: checksum
116114
output: true
117-
certificate: '{{ trimsuffix .Env.artifact ".txt" }}.pem'
115+
signature: "${artifact}.sigstore.json"
118116

119117
# This section defines the release format.
120118
archives:

0 commit comments

Comments
 (0)