From 6e12c699537d7d57e5899432acdc25981d57ca55 Mon Sep 17 00:00:00 2001 From: James Sulinski Date: Thu, 9 Feb 2017 00:28:44 -0800 Subject: [PATCH] Don't check for a CVE DB when CVE Dictionary URL is defined --- commands/report.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/report.go b/commands/report.go index 1bc14a89..ed890bfe 100644 --- a/commands/report.go +++ b/commands/report.go @@ -361,7 +361,7 @@ func (p *ReportCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{} for _, r := range history.ScanResults { if p.refreshCve || needToRefreshCve(r) { Log.Debugf("need to refresh") - if c.Conf.CveDBType == "sqlite3" { + if c.Conf.CveDBType == "sqlite3" && c.Conf.CveDictionaryURL == "" { if _, err := os.Stat(c.Conf.CveDBPath); os.IsNotExist(err) { Log.Errorf("SQLite3 DB(CVE-Dictionary) is not exist: %s", c.Conf.CveDBPath)