Skip to content

Commit

Permalink
fix(detector/vuls2): lower stauts string and compare
Browse files Browse the repository at this point in the history
  • Loading branch information
shino committed Dec 21, 2024
1 parent ad046ce commit 5dd5657
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions detector/vuls2/vendor.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ func ignoresCriterion(family string, cn criterionTypes.FilteredCriterion) bool {
switch family {
case constant.RedHat, constant.CentOS, constant.Alma, constant.Rocky:
if cn.Criterion.Version.FixStatus != nil && cn.Criterion.Version.FixStatus.Class == fixstatusTypes.ClassUnfixed {
switch cn.Criterion.Version.FixStatus.Vendor {
case "Will not fix", "Under investigation":
switch strings.ToLower(cn.Criterion.Version.FixStatus.Vendor) {
case "will not fix", "under investigation":
return true
}
}
Expand Down

0 comments on commit 5dd5657

Please sign in to comment.