Repository navigation
fix(deps): take selfupdate-cosign v0.3.4 and the go-selfupdate fork - #497
Merged
Merged
Conversation
Imports github.com/giantswarm/go-selfupdate v1.6.1 instead of creativeprojects/go-selfupdate; selfupdate-cosign v0.3.4 takes the fork's types. Removes golang.org/x/crypto/openpgp (GO-2026-5932) from the reachable graph. Refs giantswarm/selfupdate-cosign#17.
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.
Problem
govulncheckreports GO-2026-5932 (golang.org/x/crypto/openpgp, unmaintained and unsafe by design) as reachable:creativeprojects/go-selfupdatepulls in its PGP verification path, and selfupdate-cosign up to v0.3.3 depended on it. See giantswarm/selfupdate-cosign#17.Proposed solution
github.com/giantswarm/selfupdate-cosignv0.3.2 → v0.3.4, which builds on the forkgithub.com/giantswarm/go-selfupdatev1.6.1 (its own module path, without the openpgp path).github.com/creativeprojects/go-selfupdatechanged togithub.com/giantswarm/go-selfupdate: selfupdate-cosign's API now takes the fork's types.replacedirective:go installof a released module ignores them, which is why the fork carries its own module path.go mod tidy.Acceptance criteria
govulncheck ./...before:Your code is affected by 1 vulnerability from 1 module.— GO-2026-5932, traced throughupdate.init calls selfupdate.init, which calls openpgp.initgovulncheck ./...after:Your code is affected by 0 vulnerabilities.(GO-2026-5932 remains only at module level:golang.org/x/cryptois required,openpgpis not imported)go mod graphno longer containscreativeprojects/go-selfupdatego vet ./...andgo test ./...passThis PR was written by an agent.