Граф коммитов

2 Коммитов

Автор SHA1 Сообщение Дата
Tatiana Bradley bbf7cc70a7 cmd/cve, internal/cveclient: check if a record is already published in cve publish
Instead of asking the user to provide a flag -update indicating whether
a record is already published, use the CVE Services API to determine this
automatically.

Change-Id: I6e5bf7d6e095360335043424eb3330aeaf23b297
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/446218
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Tatiana Bradley <tatiana@golang.org>
2022-10-31 15:59:27 +00:00
Tatiana Bradley d66b9fe4c6 x/vulndb: add cve publish and record commands
Adds a new command, cve publish, which can be used to publish CVE
Records to MITRE from YAML reports or JSON files. Also adds a cve record
command to look up existing CVE records by ID. The commands are
currently only supported in the test environment as the MITRE API does
not yet support the commands in production.

To support these commands, this CL also contains logic to convert YAML
report files to the new CVE JSON 5.0 format.

For golang/go#53256

Change-Id: I024bb18a2ece851724ca97f2f6d77f6aafc956b0
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/411514
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2022-08-01 19:36:02 +00:00