From bbbad1af1f20ebf030bce7a712b10733cfc5a449 Mon Sep 17 00:00:00 2001 From: Radoslav Dimitrov Date: Thu, 11 Dec 2025 18:43:57 +0200 Subject: [PATCH] Update Goreleaser and Cosign (#839) ## Motivation and Context The following PR bumps cosign and updates Goreleaser to reflect that. Follows https://goreleaser.com/blog/cosign-v3/#updating-your-goreleaser-configuration ## Breaking Changes ## Types of changes - [ ] 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 - [ ] 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 Signed-off-by: Radoslav Dimitrov --- .github/workflows/release.yml | 4 +--- .goreleaser.yaml | 12 +++++------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0ec1cce..2abb732 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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/download-syft@v0.20.10 diff --git a/.goreleaser.yaml b/.goreleaser.yaml index cdad0c4..877ebad 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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: