commit | e3a5c495d7f3849dc222e07dcf96fe0c1fd9a85f | [log] [tgz] |
---|---|---|
author | Ian Cottrell <iancottrell@google.com> | Tue Aug 15 17:52:15 2023 -0400 |
committer | Gopher Robot <gobot@golang.org> | Wed Aug 16 17:42:51 2023 +0000 |
tree | 09742b2fb87b81a5e5e2d5a867a2a32954c84f22 | |
parent | 242ecf7a366e937b1fb1fa3c973a93b22acc5d58 [diff] |
internal/scan: add -version flag Only print the config block when -version is present Change to be more verbose but more readable now it is not always printed. Also don't print the usage just because there were no patterns. Fixes #53867 Change-Id: I282a5332c11eef535286133fc2425afa7f46942b Reviewed-on: https://go-review.googlesource.com/c/vuln/+/519815 Run-TryBot: Ian Cottrell <iancottrell@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Maceo Thompson <maceothompson@google.com> Reviewed-by: Zvonimir Pavlinovic <zpavlinovic@google.com> Auto-Submit: 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.