vulndb/cmd/cve
Tatiana Bradley b75d871dca cmd/cve,deploy: publish CVEs automatically
The post-submit trigger that deploys vulndb now
additionally publishes or updates any CVEs that
have changed via the CVE Services API.

This means we no longer need to manually publish
CVEs in the normal course of business.

This is safe because the CVE program no longer
makes direct edits to CVE records, so the records
in data/cve/v5 are canonical.

This CL additionally removes the logic to handle
the case in which a record was modified by the CVE
program, and adds a convenience command "publish-all"
which non-interactively publishes/updates all
CVEs that need it.

API user name and token for the service account
are stored in GCP Secret Manager.

Manual tests via "gcloud builds submit" worked.

Change-Id: I68ce77001067c6e1eff9478234ec7fc76dac587d
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/606779
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-08-19 21:20:54 +00:00
..
main.go cmd/cve,deploy: publish CVEs automatically 2024-08-19 21:20:54 +00:00