From 8a52ca4950d0d8670c872af2985c5a53f7530f19 Mon Sep 17 00:00:00 2001 From: mahanth <22050509+gnmahanth@users.noreply.github.com> Date: Fri, 9 Aug 2024 11:47:45 +0530 Subject: [PATCH] dont send ExploitabilityScore to console (#77) --- run-once.go | 2 +- scanner/grype/grype.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/run-once.go b/run-once.go index 29c4ee5..632ed83 100644 --- a/run-once.go +++ b/run-once.go @@ -235,7 +235,7 @@ func GroupByExploitability( ) { for _, r := range *reports { - if r.ExploitabilityScore > 0 { + if r.InitExploitabilityScore > 0 { exploitable = append(exploitable, r) } else { others = append(others, r) diff --git a/scanner/grype/grype.go b/scanner/grype/grype.go index 0da6b77..0837aa7 100644 --- a/scanner/grype/grype.go +++ b/scanner/grype/grype.go @@ -147,7 +147,7 @@ func PopulateFinalReport(vulnerabilities []byte, cfg utils.Config) ([]scanner.Vu score = 1 } - report.ExploitabilityScore = score + report.ExploitabilityScore = 0 report.InitExploitabilityScore = score report.HasLiveConnection = false