data: add lint check for ID and add ID to all YAML reports
Adds the ID field to all YAML reports and adds a lint check to enforce
that all reports have the correct value for the field. Also adds a
step to "vulnreport fix" to fix the ID if needed.
Change-Id: I51f4654e127528e1dbbfcb9c59da3658ad52098b
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/498281
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
diff --git a/data/reports/GO-2021-0060.yaml b/data/reports/GO-2021-0060.yaml
index 9812faf..c7fb4a8 100644
--- a/data/reports/GO-2021-0060.yaml
+++ b/data/reports/GO-2021-0060.yaml
@@ -1,3 +1,4 @@
+id: GO-2021-0060
modules:
- module: github.com/russellhaering/gosaml2
versions: