Repository navigation
fix: upgrade builder image and dependencies to close vulnerabilities - #99
Conversation
Bump the Go builder to golang:1.26.6-alpine3.24 and the runtime base to alpine:3.24 in both Dockerfile and Dockerfile.skill-puller (they share the same go.mod), and update go.mod/go.sum dependencies. Trivy reports 0 vulnerabilities on the resulting images. Aligned the go.mod language version and CLAUDE.md's stated Go version with the new builder version. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Pavel Anni <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Enterprise Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (6)
Included review availability: Your plan includes up to 12 reviews per rolling hour; 10 remain after this review. 📝 WalkthroughSummary by CodeRabbit
WalkthroughThe change raises the project baseline to Go 1.26 and Alpine 3.24, refreshes Go dependencies, adjusts automatic logger format detection, and logs response write or encoding errors in the document-service demo. ChangesGo runtime and observability updates
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The change updates build/runtime images and dependencies to address known vulnerabilities, with builds, tests, and vulnerability scans reported passing; no actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
- Fix pre-existing golangci-lint failures: check errcheck'd writes in demo/batch/document-service (health/document/documents handlers), and drop the ineffectual useText assignment in internal/logger by restructuring the format auto-detection to only set useJSON. - Relax go.mod's go directive to 1.26.0 (minimum) instead of pinning the exact builder patch version 1.26.6, so it matches CLAUDE.md's "Go 1.26+" and doesn't reject contributors on earlier 1.26.x patches. curl is kept in the runtime image; it's required by the agent at runtime. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Pavel Anni <[email protected]>
Summary
golang:1.26.6-alpine3.24and the runtime base toalpine:3.24in bothDockerfileandDockerfile.skill-puller(they share the samego.mod, so both were exposed to the same dependency vulnerabilities).go.mod/go.sumdependencies (a2a-go, anthropic-sdk-go, modelcontextprotocol/go-sdk, prometheus client, OTel, grpc, sqlite, etc.) and align thego.modlanguage version and CLAUDE.md's stated Go version with the new builder version.google.golang.org/grpcxDS RBAC/HTTP2 vulnerabilities, fixed in 1.82.1+) — go.sum now pulls in v1.83.0.Verification
go build ./...andgo test ./...pass.go mod tidyproduces no additional diff.--severity HIGH,CRITICAL --scanners vuln): 0 vulnerabilities on the alpine OS layer and the compiled Go binary for bothdocsclawandskill-pullerimages.Test plan