Repository navigation
deps: patch Go toolchain and x/net CVEs; add govulncheck to CI - #12
Merged
Merged
Conversation
govulncheck found reachable vulnerabilities on main from the Go 1.26.3 standard library (net/http, crypto/x509, crypto/tls, net/textproto) and golang.org/x/net v0.58.0. - flake.lock: bump nixpkgs to 2026-11-21. - flake.nix: build and develop with go_1_26 (1.26.11), which fixes all reported stdlib issues. Default `go` is now 1.27.3, which still has GO-2026-6859 (fixed in 1.27.4), and go.mod targets 1.26 anyway. - flake.nix: drop x86_64-darwin; nixpkgs 26.11 no longer supports it. - flake.nix/docs: stdenv.isLinux -> stdenv.hostPlatform.isLinux (deprecated). - go.mod: golang.org/x/net v0.60.0 (+ x/sync, x/sys, x/text). - CI: add a govulncheck job and a weekly scheduled run. - dependabot-vendor-hash.yml: don't let the `got:` grep abort the script under pipefail when the build fails for another reason, so the actual error is printed instead of a silent exit 1. govulncheck now reports 0 vulnerabilities.
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
govulncheckfound vulnerabilities reachable from the shim onmainand in the releasedcontainix/v0.1.0:golang.org/x/netv0.58.0v0.1.0 is also affected by the containerd issues GO-2026-6796 and GO-2026-6791, which
mainalready fixes after the recent Dependabot merges.Changes
go_1_26(1.26.11).go(1.27.3). It still has GO-2026-6859, which is fixed in 1.27.4 and not yet in nixpkgs.go.modalready targets 1.26.golang.org/x/net→ v0.60.0, plus the related x/sync, x/sys and x/text bumps.x86_64-darwinfrom the flake, because nixpkgs 26.11 removed support for it.stdenv.isLinux→stdenv.hostPlatform.isLinux.govulncheckjob and a weekly scheduled run, so newly published vulnerabilities show up between PRs.pipefailbug. When vendoring failed for a reason other than a hash mismatch, the job exited 1 silently instead of printing the error. That happened on Bump containerd to 2.4.2 (requires containerd 2.3+ daemons) #11.Verified locally
govulncheck ./...(linux/amd64): 0 vulnerabilitiesgo buildfor linux/amd64 and linux/arm64, plusgo vetvendorHashwas recomputed with Go 1.26.11 and matches.nixpkgs-fmtand actionlint pass.golangci-lint2.15.go test -raceand the Nix build only run on Linux, so CI covers those.Follow-ups
containix/v0.1.1so the released binary picks up these fixes and the containerd ones.ManagerAPI changed. Its vendoring failure is the Go-version requirement, which this PR fixes.