Skip to content

Commit 898bae3

Browse files
committed
ci: scan with the current Go release in govulncheck
go.mod declares a compatibility floor of 1.23, and setup-go was pinning the scan to that line. govulncheck then reported 21 stdlib advisories that are only fixed in later Go releases, none of which say anything about this module's own code. Scan with the stable toolchain instead.
1 parent 399d56a commit 898bae3

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/security.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ jobs:
2323
- name: Checkout code
2424
uses: actions/checkout@v7
2525

26+
# Scan with the current Go release rather than the module's minimum
27+
# version: go.mod declares a compatibility floor, but stdlib advisories
28+
# are reported against whatever toolchain built the code, and old point
29+
# releases carry vulnerabilities that are already fixed upstream.
2630
- name: Set up Go
2731
uses: actions/setup-go@v7
2832
with:
29-
go-version-file: go.mod
33+
go-version: stable
3034
check-latest: true
3135

32-
# govulncheck itself is built with a newer toolchain than the module's
33-
# minimum Go version, so it needs GOTOOLCHAIN=auto to fetch one.
3436
- name: Install govulncheck
3537
run: go install golang.org/x/vuln/cmd/govulncheck@latest
36-
env:
37-
GOTOOLCHAIN: auto
3838

3939
- name: Run govulncheck
4040
run: govulncheck ./...

0 commit comments

Comments
 (0)