commit | 685e27b9659b928428dffb731e02a472937ae67c | [log] [tgz] |
---|---|---|
author | Zvonimir Pavlinovic <zpavlinovic@google.com> | Thu Feb 15 18:22:22 2024 +0000 |
committer | Zvonimir Pavlinovic <zpavlinovic@google.com> | Mon Feb 26 19:52:18 2024 +0000 |
tree | fbc24c0e03b938b6d5b31f33b272367b56525517 | |
parent | bb775576a9cb2c25721163042635849bc434f704 [diff] |
internal/scan: introduce format flag The current values are text and json. The latter is compatible with -json flag that is designated as a legacy flag common to Go tools. This CL is a precursor to sarif support. Change-Id: I5a73b224e34c6c7f2798858c818f5f8d8e2437d0 Reviewed-on: https://go-review.googlesource.com/c/vuln/+/564478 Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Maceo Thompson <maceothompson@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.