Repository navigation
⬆️ fix(deps): raise Go to 1.26.6 to clear 7 called stdlib advisories - #296
Merged
Merged
Conversation
PERF-FIX-06. `task vulncheck` was red on clean `main` with 7 standard-library vulnerabilities that this code actually calls -- reachable paths named by govulncheck included `inventory.Server.Start`, `s3.Backend.Export`, and `mongodb.Backend.Close`. All seven are `Fixed in: go1.26.6`. Because these are stdlib advisories, the fix is a toolchain bump, not a dependency bump. Two places had to move together: - `go.mod` `go` directive 1.26.5 -> 1.26.6. CI resolves its Go version via `go-version-file: go.mod`, so this covers every workflow at once. - `Dockerfile` and `Dockerfile.pipeline` pin `golang:1.26.5` by digest. Left alone, the *shipped image* would keep compiling against the vulnerable stdlib while `go.mod` claimed otherwise -- the released binary, not the local one, is what users run. `task vulncheck` now exits 0 (0 called vulnerabilities, down from 7). The one remaining advisory is in a required module with no called path, which is the pre-existing SR-2026-06 exception already documented in docs/SECURITY-REVIEW.md. Note `vulncheck` is not one of protect-main's required checks, which is how it stayed red unnoticed; it is a CI job and is now green.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
…uilds
Independent review of the 1.26.6 bump caught that `.devcontainer/devcontainer.json`
still pinned `golang:1.26.4`. That drift was pre-existing -- it was already
behind `main`'s 1.26.5 -- but raising the `go.mod` floor converts it from stale
to fatal: the official golang image sets `GOTOOLCHAIN=local`, so the devcontainer
cannot silently fetch a newer toolchain and instead hard-fails with
go: go.mod requires go >= 1.26.6 (running go 1.26.5; GOTOOLCHAIN=go1.26.5)
Pin it to the same digest the Dockerfiles use, so the three cannot drift apart
again without it being visible in one grep.
Also correct `docs/development/setup.md`, which advertised a 1.26.4+ floor.
|
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.



PERF-FIX-06
task vulncheckwas red on cleanmain— 7 standard-library vulnerabilities with called paths, allFixed in: go1.26.6. Reachable traces named by govulncheck includedinternal/inventory/server.go:77(Server.Start→ListenAndServe),internal/sink/s3/backend.go:111(Backend.Export→xml.Decoder), andinternal/sink/mongodb/backend.go:136(Backend.Close).Because these are stdlib advisories, the fix is a toolchain bump, not a dependency bump.
Two places had to move together
go.modgodirective → 1.26.6go-version-file: go.mod, so this covers every workflow at onceDockerfile+Dockerfile.pipeline(golang:1.26.5→1.26.6, digest-pinned)go.modclaims otherwise. The released binary is what users run.Verification
task vulncheck→ exit 0, "No vulnerabilities found" (was 7 called)task test:run→ exit 0, all packagesokgo build ./...→ exit 0The one remaining advisory is in a required module with no called path — the pre-existing
SR-2026-06exception already documented indocs/SECURITY-REVIEW.md.Note
vulncheckis not one ofprotect-main's required checks (preflight,test,kind-smoke,Analyze (Go)) — which is precisely how it stayed red without blocking anything. It is a CI job and is now green.