mirror of
https://github.com/lukaszraczylo/go-telegram.git
synced 2026-10-13 00:47:31 +00:00
ci: pin govulncheck to v1.7.0
govulncheck@latest resolves to v1.8.0, which declares go 1.26.0 in its module file. Every job in this workflow pins go-version 1.25.x, so the install step fails before any scanning runs, which fails ci-success and skips the release job. v1.7.0 declares go 1.25.0 and installs on the pinned toolchain. This also matches the convention used for staticcheck, which is already pinned to an exact version. Pinning the binary does not freeze the vulnerability database, which govulncheck fetches at run time. Claude-Session: https://claude.ai/code/session_01Fu2wXqGUrfVBi5aLafKk8U
This commit is contained in:
@@ -69,7 +69,13 @@ jobs:
|
||||
~/go/pkg/mod
|
||||
~/.cache/go-build
|
||||
key: ${{ runner.os }}-go-1.25-${{ hashFiles('**/go.sum') }}
|
||||
- run: go install golang.org/x/vuln/cmd/govulncheck@latest
|
||||
# Pinned, matching staticcheck above. govulncheck@latest is v1.8.0,
|
||||
# which declares go 1.26.0 and therefore cannot be installed by the
|
||||
# 1.25.x toolchain this workflow pins - the install step fails before
|
||||
# any scanning happens. v1.7.0 declares go 1.25.0. Pinning the binary
|
||||
# does not freeze the vulnerability database, which govulncheck
|
||||
# fetches at run time. Re-pin deliberately when bumping go-version.
|
||||
- run: go install golang.org/x/vuln/cmd/[email protected]
|
||||
- run: govulncheck ./...
|
||||
|
||||
gosec:
|
||||
|
||||
Reference in New Issue
Block a user