commit | cbe0a6944b8b222c8d3af76d422695d0d486627b | [log] [tgz] |
---|---|---|
author | Hana (Hyang-Ah) Kim <hyangah@gmail.com> | Tue Sep 20 22:32:12 2022 -0400 |
committer | Hyang-Ah Hana Kim <hyangah@gmail.com> | Fri Sep 23 18:15:59 2022 +0000 |
tree | 2a63e4a266bfb6e2fdef07150574395c76ae8eab | |
parent | abdd677224e440ae6df33eb6c16fbfc229c80b92 [diff] |
cmd/govulncheck/govulnchecklib: add "summary" output mode This CL adds a type Summary that represents typical govulncheck command output format, and lets Main print JSON-encoded Summary when the output mode is "summary". In order to reuse the test setup of the govulncheck command while not surfacing this option to govulncheck users, we add a testmode-only flag `--summary-json` that makes govulncheck output JSON of Summary struct. Change-Id: I10dcfd35836d4eb37ab907b958b73432ed8a249b Reviewed-on: https://go-review.googlesource.com/c/vuln/+/432181 Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com> Reviewed-by: Jonathan Amsterdam <jba@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Zvonimir Pavlinovic <zpavlinovic@google.com>
This repository contains packages for accessing and analyzing data from the Go Vulnerability Database. It contains the following:
Check out https://go.dev/security/vuln for more information about the Go vulnerability management system.
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.