.github: bump golangci-lint to v2.13.1 for Go 1.27 - #3773
Merged
vangent merged 2 commits intoAug 24, 2026
Conversation
The golangci-lint workflow installs Go via setup-go with
go-version: stable, which now resolves to Go 1.27. golangci-lint
v2.12.2 is built with Go 1.26, so its embedded go/types cannot
type-check the Go 1.27 standard library and the run panics:
file requires newer Go version go1.27 (application built with go1.26)
v2.13.1 is built with Go 1.27, matching the stable toolchain. It
adds no new linters to the default set, and the existing code
passes with 0 issues.
The zizmor mandatory check requires every action reference to be pinned to a full commit SHA rather than a tag. Pin checkout, setup-go, and golangci-lint-action to the commit each tag resolves to, keeping the tag as a trailing comment.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3773 +/- ##
=======================================
Coverage 75.42% 75.42%
=======================================
Files 104 104
Lines 14267 14267
=======================================
Hits 10761 10761
Misses 2768 2768
Partials 738 738 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Fix golangci-lint crash on Go 1.27
The
golangci-lintworkflow installs Go viasetup-gowithgo-version: stable, which now resolves to Go 1.27. golangci-lint v2.12.2 is built with Go 1.26, so its embeddedgo/typescannot type-check the Go 1.27 standard library and the run panics:golangci-lint v2.13.1 is built with Go 1.27, matching the stable toolchain. It adds no new linters to the default set, and the existing code passes with 0 issues.
Pin workflow actions to commit SHAs
The zizmor mandatory check requires every action reference to be pinned to a full commit SHA rather than a tag. This pins
actions/checkout,actions/setup-go, andgolangci/golangci-lint-actionto the commit each tag resolves to, keeping the tag as a trailing comment.