Skip to content

fix(deps): patch the Go toolchain, Alpine base and x/ modules in the image - #172

Merged
blue4209211 merged 1 commit into
mainfrom
fix/patch-image-cves
Nov 1, 2026
Merged

blue4209211 merged 1 commit into
mainfrom
fix/patch-image-cves

Conversation

@mayankpande88

Copy link
Copy Markdown
Contributor

The published image scans with 89 Critical and High findings on Grype: Go 1.26.3 stdlib, x/net, x/text and Alpine 3.22 OpenSSL. This pins Go 1.26.10, moves the base to Alpine 3.23 with an apk upgrade, and bumps x/net to v0.60.0 and x/text to v0.42.0. No code changes.

Check: after merge, build-image.yaml publishes a new date tag. Run grype on it and confirm 0 Critical and High.

Local e2e: built the image for linux/arm64 and ran ./nova find from it in a kind cluster with a Helm release installed. The JSON output matched the current published image. go test ./... passes. Grype 0.121.0: 89 before, 0 after.

…image

The published image carried 89 Critical and High findings from an old Go
stdlib, x/net, x/text and Alpine 3.22 packages. Pin golang:1.26.10-alpine so
a rebuild can't reuse a stale floating tag, move to Alpine 3.23 with an apk
upgrade, and bump x/net and x/text.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Go and Alpine base images in the Dockerfile, adds an apk upgrade command, and bumps several Go dependencies in go.mod and go.sum. The reviewer correctly notes that using apk upgrade in the Dockerfile introduces non-reproducible builds and suggests pinning updated base images instead to ensure stability.

Comment thread Dockerfile Resolved
@blue4209211
blue4209211 merged commit 672e9c0 into main Nov 1, 2026
4 checks passed
@blue4209211
blue4209211 deleted the fix/patch-image-cves branch November 1, 2026 06:52
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.

3 participants