Bump Go toolchain to 1.26.6 to fix stdlib vulnerabilities - #161
Open
devin-ai-integration[bot] wants to merge 4 commits into
Open
devin-ai-integration[bot] wants to merge 4 commits into
devin-ai-integration[bot] wants to merge 4 commits into
Conversation
Co-Authored-By: shayan <shayan@cognition.ai>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Co-Authored-By: shayan <shayan@cognition.ai>
Co-Authored-By: shayan <shayan@cognition.ai>
Co-Authored-By: shayan <shayan@cognition.ai>
|
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.




Closes: N/A (Snyk scan remediation)
Summary
All Snyk findings for this repo are Go standard-library CVEs pinned by
go 1.23.7ingo.mod. Go stdlib packages can't be upgraded individually, so the fix is a toolchain bump:go.mod:go 1.23.7→go 1.26.6(the lowest version in the same Go major that is ≥ every "fixed in" version across all findings: x509 1.26.4, mime 1.26.4, net 1.26.3, net/http 1.26.6, net/url 1.26.6, os 1.26.5).Dockerfile: build stagegolang:1.24.4-alpine→golang:1.26.6-alpine(same Go major; tag verified on Docker Hub, published 2026-08-16). This also addresses the base-image OS-package findings forgolang_1.24.4-alpine. Distroless runtime image unchanged..github/workflows/lint.yml: the prebuilt golangci-lint v2.1 binary is compiled with Go 1.24 and refuses to lint a module targeting Go 1.26.6, so the action now usesinstall-mode: goinstall(builds v2.1.6 with the workflow's Go) andgo-version-file: go.modlike the other workflows.go.sumunchanged aftergo mod tidy.Snyk issues addressed
Verification
With
GOTOOLCHAIN=go1.26.6:go build ./...ok,go test ./...all packages pass,golangci-lint run(v2.1.6) 0 issues.snyk testnot run locally (no Node/npx on the box); thesecurity/snykCI check passes.CI notes
Analyze (go)/Analyze (actions)(CodeQL) fail with403 permission_denied: read_packagefetchinggithub/ccr-*-queriespacks before analysis starts — a registry permission issue, workflow unchanged from main. SonarCloud failure logs are not retrievable via the API. Neither is related to this change.Link to Devin session: https://app.devin.ai/sessions/a2c8129c79724030b808172d7fe2112f
Open in Devin Desktop: https://app.devin.ai/desktop/session/a2c8129c79724030b808172d7fe2112f?variant=devin