bumblebee
bumblebee copied to clipboard
[Security] Pin govulncheck version in ci.yml to prevent supply chain risks
Problem
The Go vulnerability checker configured in .github/workflows/ci.yml currently targets the @latest tag.
Using @latest introduces significant risk to the build environment (similar to recent Trivy supply chain incidents). Automatically pulling unpinned, upstream code increases the vulnerability to supply chain attacks if the source repository is ever compromised.
code reference
go install golang.org/x/vuln/cmd/govulncheck@latest
Proposed change
Locking the installation version ensures the development environments and deployment pipelines remain stable, predictable, and secure.
Change @latest to a pinned release version, such as @v1.3.0.
e.g.
go install golang.org/x/vuln/cmd/[email protected]
thanks for raising this, @rphipps75 🙏