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>
Create a package for working with github.com/CVEProject/cvelist.
Change-Id: Iadac53c0f13ba658bc20a9bd4f74d58ade5a4f44
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/375716
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Julie Qiu <julie@golang.org>