fix(report): wordrpess scanning skipped when package is emtpy (#1150)

This commit is contained in:
Kota Kanbe
2021-01-28 08:24:03 +09:00
committed by GitHub
parent a8c0926b4f
commit 3dbdd01f97
2 changed files with 2 additions and 2 deletions

View File

@@ -227,7 +227,7 @@ func DetectGitHubCves(r *models.ScanResult, githubConfs map[string]c.GitHubConf)
// DetectWordPressCves detects CVEs of WordPress
func DetectWordPressCves(r *models.ScanResult, wpCnf *c.WpScanConf) error {
if len(r.Packages) == 0 {
if len(r.WordPressPackages) == 0 {
return nil
}
util.Log.Infof("Detect WordPress CVE. pkgs: %d ", len(r.WordPressPackages))