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

4 Коммитов

Автор SHA1 Сообщение Дата
Maceo Thompson 93f50fcb7c internal/report, data/osv: populate schema_version field in osv entries
The vulnreport osv command now populates all generated osvs with the current schema version (1.3.1).
This CL also updates all previous OSV entries to also have the current schema version.

Change-Id: Ie95c91aae0ee623bbf50ff047190a0bbe59893d9
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/452440
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
Run-TryBot: Maceo Thompson <maceothompson@google.com>
2022-11-21 19:50:45 +00:00
Tatiana Bradley e21719caff internal/database, data/osv: trim whitespace characters in OSV description
In GenerateOSVEntry, replace all whitespace characters with single spaces
except for paragraph breaks represented by "\n\n".

Change-Id: Ia03f0b53c94979fada6316be1346df3f48b9fabe
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/439044
Run-TryBot: Tatiana Bradley <tatiana@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
2022-10-26 17:44:45 +00:00
Damien Neil 6e322a34cb all: add lint rule to catch redundant CVE/GHSA links
The references section of a report doesn't need to include
links to GitHub/MITRE/NIST for advisories listed as aliases,
since we'll generate those links from the alias information.
Add a lint rule to fund these redundant references.

Allow ADVISORY links to these destinations, which indicate
that the source is the canonical advisory for a vuln.

Allow links to CVEs/GHSAs not listed as aliases, since it's
legitimate to link to a related vulnerability for further
information.

Change-Id: Ibdc103a3ef76f306c2e9ddac7f839f3b94d8467f
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/432975
Run-TryBot: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
2022-09-23 18:53:37 +00:00
Damien Neil ea89353760 data/osv: add OSV entries for all reports
Create data/osv, containing the OSV version for all reports.
This directory will be used as the source for database generation
in the future.

Set creation times on all existing reports; future reports will
take the creation time from the OSV entry history.

Change-Id: Ibe0f3a9fc76c0d4afee8102d6a0fd35c7641e97d
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/430682
Run-TryBot: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
2022-09-20 15:16:04 +00:00