ci: bump golangci-lint-action to v8 with pinned v2.9.0 (#12)

.golangci.yml declares version: "2" (new schema) but CI was using
golangci-lint-action@v6, which ships golangci-lint v1.64.8. That
binary is built with go1.24 and cannot load a config targeting
go1.25, so every lint run on main failed with:

  can't load config: the Go language version (go1.24) used to build
  golangci-lint is lower than the targeted Go version (1.25)

golangci-lint-action@v8 supports golangci-lint v2.x. Pin v2.9.0 to
match the locally-used version and keep the binary toolchain aligned
with the go1.25 project target.
This commit is contained in:
2026-04-19 20:02:54 +01:00
committed by GitHub
parent 5ad975ee7a
commit 1fe8db9012
+2 -2
View File
@@ -34,7 +34,7 @@ jobs:
cache: true
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
uses: golangci/golangci-lint-action@v8
with:
version: latest
version: v2.9.0
args: --timeout=5m