Skip to content

Commit

Permalink
parse trivy fixed from fixed version
Browse files Browse the repository at this point in the history
  • Loading branch information
mchmarny committed Apr 16, 2023
1 parent a444a07 commit 64c4a76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/converter/trivy/trivy.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func mapVulnerability(v *gabs.Container) *data.Vulnerability {
Version: parser.String(v, "InstalledVersion"),
Severity: strings.ToLower(parser.String(v, "Severity")),
Score: getScore(c, parser.String(v, "SeveritySource"), "nvd", "redhat"),
IsFixed: false, // trivy does not provide this info
IsFixed: parser.String(v, "FixedVersion") != "",
}

return item
Expand Down

0 comments on commit 64c4a76

Please sign in to comment.