fix: judge by scannedVia (#1456)

This commit is contained in:
Satoru Nihei
2022-05-06 09:38:38 +09:00
committed by GitHub
parent 91ed318c5d
commit 2158fc6cb1

View File

@@ -262,8 +262,8 @@ func isPkgCvesDetactable(r *models.ScanResult) bool {
return false
}
if r.ScannedBy == "trivy" {
logging.Log.Infof("r.ScannedBy is trivy. Skip OVAL and gost detection")
if r.ScannedVia == "trivy" {
logging.Log.Infof("r.ScannedVia is trivy. Skip OVAL and gost detection")
return false
}