Skip to content

Install cosign at versions.yaml's version in release.yml - #912

Merged
aledbf merged 1 commit into
mainfrom
cosign-from-versions
Dec 3, 2026
Merged

aledbf merged 1 commit into
mainfrom
cosign-from-versions

Conversation

@aledbf

@aledbf aledbf commented Dec 3, 2026

Copy link
Copy Markdown
Member

Why

cosign's version should live in one place, so the cosign release.yml signs and verifies with cannot drift from the one versions.yaml pins. It had drifted. versions.yaml pins v3.1.6, which internal/release's checks build with go run. sigstore/cosign-installer v4.1.4 installs its own default, v3.1.5. The note asking to keep the two at one version had nothing enforcing it.

What changed

  • Taskfile.yml has a new pin task. task pin NAME=<entry> prints versions version <entry> and, in a workflow, writes it as the step's version output. An unknown entry fails the step and writes no output.
  • In release.yml, both jobs that install cosign (publish, traceable) now run a Cosign's version step first and hand steps.cosign.outputs.version to the installer as cosign-release. Dependabot moving the installer pin now moves only the action.
  • The cosign note in versions.yaml now says this.

Proof

release.yml runs only on a release, so the new steps were checked locally. task pin NAME=cosign prints v3.1.6. With GITHUB_OUTPUT set to a file, the file holds version=v3.1.6. task pin NAME=nope exits non-zero and leaves the file empty. task lint passes, including actionlint (lint:workflows) and taskgate. task test passes.

Closes #911

🤖 Generated with Claude Code

versions.yaml pins cosign v3.1.6, which internal/release's checks build
with go run, while sigstore/cosign-installer v4.1.4 installed its own
default, v3.1.5. Each job that installs cosign now reads the pin with a
`task pin NAME=cosign` step (go-tools' versions version) and hands it to
the installer as cosign-release, so the installer's pin moves only the
action.

Closes #911

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aledbf
aledbf enabled auto-merge (rebase) December 3, 2026 20:40
@aledbf
aledbf merged commit 7bcb67e into main Dec 3, 2026
16 checks passed
@aledbf
aledbf deleted the cosign-from-versions branch December 3, 2026 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Install cosign at versions.yaml's version in workflows

1 participant