commit | 329db54bf159d54abed75ec55abce8bfae53c926 | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Mon Mar 14 15:16:57 2022 -0700 |
committer | Damien Neil <dneil@google.com> | Tue Mar 15 16:45:28 2022 +0000 |
tree | f32259bffbaf056bb5db48f7264df2a9ee27bec9 | |
parent | ba61e8eebac9f95135db32402f0d0f3143416ee8 [diff] |
internal/database: set modification timestamp from git history Set the "modified" field in OSV reports to the timestamp of the last change in the git history of the appropriate .yaml. Update code comments for setDates: Setting the publication date no longer speeds up generation (since we always pull the git history for the repo), and this function intentionally does not set the LastModified field (to avoid potential confusion if a report has a hardcoded, out-of-date LastModified field.) Fixes golang/vulndb#50434. Change-Id: Id5f8009d84f450fc9dc87889fb227be7ea17d575 Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/392539 Trust: Damien Neil <dneil@google.com> Run-TryBot: Damien Neil <dneil@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com>
This repository contains the reports for the Go Vulnerability Database.
If you are interested accessing data from the Go Vulnerability Database, see x/vuln for information. This repository is only used for adding new vulnerabilities.
We are not accepting new vulnerability reports at this time. We will update this README.md once we are ready to receive reports.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Database entries are distributed under the terms of the CC-BY 4.0 license. See x/vuln for information on how to access these entries.