Skip to content

Commit 38dc6c3

Browse files
authored
ci(govulncheck): set GOTOOLCHAIN=auto for the vuln scan (#5)
- setup-go v6 defaults GOTOOLCHAIN to "local", which blocks installing govulncheck@latest (needs go >= 1.25) against the go1.24.6 toolchain - pinning GOTOOLCHAIN=auto restores the pre-v6 behavior so the tool install can pull the newer toolchain it requires #ci #govulncheck
1 parent cf4c5cd commit 38dc6c3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ jobs:
7676
go-version-file: go.mod
7777
cache: true
7878
- name: govulncheck
79+
env:
80+
# govulncheck@latest requires a newer Go than go.mod pins; allow the
81+
# toolchain to auto-upgrade for the tool install. setup-go v6 defaults
82+
# GOTOOLCHAIN to "local", which otherwise blocks this.
83+
GOTOOLCHAIN: auto
7984
run: |
8085
go install golang.org/x/vuln/cmd/govulncheck@latest
8186
govulncheck ./...

0 commit comments

Comments
 (0)