add diff-mode info (#1008)

This commit is contained in:
segatomo
2020-06-19 16:07:14 +09:00
committed by GitHub
parent 4a73875e4d
commit 8a611f9ba6

View File

@@ -515,6 +515,10 @@ func getDiffCves(previous, current models.ScanResult) models.VulnInfos {
}
}
if len(updated) == 0 {
util.Log.Infof("%s: There are %d vulnerabilities, but no difference between current result and previous one.", current.FormatServerName(), len(current.ScannedCves))
}
for cveID, vuln := range new {
updated[cveID] = vuln
}