Repository navigation
Install cosign at versions.yaml's version in release.yml - #912
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
cosign's version should live in one place, so the cosign release.yml signs and verifies with cannot drift from the one
versions.yamlpins. It had drifted.versions.yamlpins v3.1.6, which internal/release's checks build withgo run.sigstore/cosign-installerv4.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.ymlhas a newpintask.task pin NAME=<entry>printsversions version <entry>and, in a workflow, writes it as the step'sversionoutput. An unknown entry fails the step and writes no output.release.yml, both jobs that install cosign (publish, traceable) now run aCosign's versionstep first and handsteps.cosign.outputs.versionto the installer ascosign-release. Dependabot moving the installer pin now moves only the action.versions.yamlnow says this.Proof
release.yml runs only on a release, so the new steps were checked locally.
task pin NAME=cosignprintsv3.1.6. WithGITHUB_OUTPUTset to a file, the file holdsversion=v3.1.6.task pin NAME=nopeexits non-zero and leaves the file empty.task lintpasses, including actionlint (lint:workflows) and taskgate.task testpasses.Closes #911
🤖 Generated with Claude Code