Skip to content

Commit

Permalink
dont send ExploitabilityScore to console
Browse files Browse the repository at this point in the history
  • Loading branch information
gnmahanth committed Aug 9, 2024
1 parent 2bb73bf commit c516c42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion run-once.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion scanner/grype/grype.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c516c42

Please sign in to comment.