commit | e45fa1058c760f9170199dbc958c732e6859039d | [log] [tgz] |
---|---|---|
author | Zvonimir Pavlinovic <zpavlinovic@google.com> | Tue Nov 26 22:29:18 2024 +0000 |
committer | Zvonimir Pavlinovic <zpavlinovic@google.com> | Wed Nov 27 21:03:00 2024 +0000 |
tree | ed0a109a53e64def09805fab1b1e1020c9a4651d | |
parent | bf472d2030dca36c085c870538ba5d22d8db3fc5 [diff] |
cmd/govulncheck: better mask new (sbom) versions Using +dirty to match binary versions produced by new go build stamping feature is not sufficient. In general, the build version will depend on the git state and the vuln repo version. We hence only emit sbom messages for the prebuild binaries. Updates golang/go#70523 Change-Id: Id55307b4cef2af3f4ff4685bb34f001554fa4dd4 Reviewed-on: https://go-review.googlesource.com/c/vuln/+/632155 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Cottrell <iancottrell@google.com>
Go's support for vulnerability management includes tooling for analyzing your codebase and binaries to surface known vulnerabilities in your dependencies. This tooling is backed by the Go vulnerability database, which is curated by the Go security team. Go’s tooling reduces noise in your results by only surfacing vulnerabilities in functions that your code is actually calling.
You can install the latest version of govulncheck using go install
go install golang.org/x/vuln/cmd/govulncheck@latest
Then, run govulncheck inside your module:
govulncheck ./...
See the govulncheck tutorial to get started, and https://go.dev/security/vuln for more information about Go's support for vulnerability management. The API documentation can be found at https://pkg.go.dev/golang.org/x/vuln/scan.
The privacy policy for govulncheck
can be found at https://vuln.go.dev/privacy.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Database entries available at https://vuln.go.dev are distributed under the terms of the CC-BY 4.0 license.