vulndb/internal/cvelistrepo
Maceo Thompson 4b2e40139f cmd/vulnreport, internal/cvelistrepo: refactor FetchCVE to make repeated calls more efficient
We previously passed in a path to a repo which forced the vulnreport command to clone/open the github repo every time we added a new report. Now, we use a git.Repository pointer instead of path to git repo (as a string) as an arg for FetchCVE and in vulnreport/main.go's createCfg struct. When adding multiple reports in a single command, that clone/open logic will only occur once.

Change-Id: I92dd6dbf6fe52d704f27663dca98a5668ec8cf56
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/445636
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Maceo Thompson <maceothompson@google.com>
2022-10-28 21:31:33 +00:00
..
testdata internal/worker: avoid filing duplicate issues for CVEs with GHSAs 2022-10-26 17:32:03 +00:00
cvelistrepo.go cmd/vulnreport, internal/cvelistrepo: refactor FetchCVE to make repeated calls more efficient 2022-10-28 21:31:33 +00:00
cvelistrepo_test.go internal/worker: avoid filing duplicate issues for CVEs with GHSAs 2022-10-26 17:32:03 +00:00