Skip to content

ci(govulncheck): set GOTOOLCHAIN=auto for the vuln scan#5

Merged
htcom-code merged 1 commit into
mainfrom
fix/govulncheck-gotoolchain
Jul 5, 2026
Merged

ci(govulncheck): set GOTOOLCHAIN=auto for the vuln scan#5
htcom-code merged 1 commit into
mainfrom
fix/govulncheck-gotoolchain

Conversation

@htcom-code

Copy link
Copy Markdown
Owner

Problem

After bumping actions/setup-go to v6 (PR #3), the govulncheck job fails:

go install golang.org/x/vuln/cmd/govulncheck@latest
→ golang.org/x/vuln@v1.5.0 requires go >= 1.25.0 (running go 1.24.6; GOTOOLCHAIN=local)

setup-go v6 defaults GOTOOLCHAIN to local, which prevents Go from auto-downloading the newer toolchain that govulncheck@latest (go >= 1.25) requires. Under setup-go v5 this worked because GOTOOLCHAIN was left as auto.

Change

Set GOTOOLCHAIN: auto on the govulncheck step so the tool install can pull the toolchain it needs, while the module itself stays pinned at go 1.24.6.

Follow-up

Once merged, rebasing PR #3 (setup-go 5 -> 6) will make its govulncheck gate pass.

- 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

Co-Authored-By: htjulia <htjulia1@gmail.com>
@htcom-code htcom-code merged commit 38dc6c3 into main Jul 5, 2026
7 checks passed
@htcom-code htcom-code deleted the fix/govulncheck-gotoolchain branch July 5, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant