Skip to content

Commit 32d3561

Browse files
fix: pin CI Go to 1.24 so gosec and golangci-lint can typecheck
- 'stable' resolves to Go 1.26 on the runner; gosec v2.21.4's golang.org/x/tools v0.25.0 dependency fails to compile under 1.26 with "invalid array length -delta * delta" in tokeninternal.go - golangci-lint v1.64.8 is shipped as a binary built with Go 1.24 and cannot typecheck vendor/golang.org/x/crypto/chacha20poly1305/fips140only_go1.26.go - Pinning to 1.24 matches both tools' embedded Go version and keeps the module buildable
1 parent a6b4d96 commit 32d3561

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/go.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
- uses: actions/setup-go@v5
1515
with:
16-
go-version: 'stable'
16+
go-version: '1.24'
1717
cache: true
1818

1919
- name: Verify dependencies
@@ -48,7 +48,7 @@ jobs:
4848

4949
- uses: actions/setup-go@v5
5050
with:
51-
go-version: 'stable'
51+
go-version: '1.24'
5252
cache: true
5353

5454
- name: Lint
@@ -63,7 +63,7 @@ jobs:
6363

6464
- uses: actions/setup-go@v5
6565
with:
66-
go-version: 'stable'
66+
go-version: '1.24'
6767
cache: true
6868

6969
- name: Security scan
@@ -78,7 +78,7 @@ jobs:
7878

7979
- uses: actions/setup-go@v5
8080
with:
81-
go-version: 'stable'
81+
go-version: '1.24'
8282
cache: true
8383

8484
- name: Cross-compile check

0 commit comments

Comments
 (0)