From 2158fc6cb1c5aa81c6746e3e6018aa60e0fa2eaa Mon Sep 17 00:00:00 2001 From: Satoru Nihei Date: Fri, 6 May 2022 09:38:38 +0900 Subject: [PATCH] fix: judge by scannedVia (#1456) --- detector/detector.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/detector/detector.go b/detector/detector.go index e585517e..0ceda39c 100644 --- a/detector/detector.go +++ b/detector/detector.go @@ -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 }