From 5dd5657fb9673a66009a3073d158ed1d623fa919 Mon Sep 17 00:00:00 2001 From: Shunichi Shinohara Date: Sat, 21 Dec 2024 23:46:13 +0900 Subject: [PATCH] fix(detector/vuls2): lower stauts string and compare --- detector/vuls2/vendor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/detector/vuls2/vendor.go b/detector/vuls2/vendor.go index a9e72b6ba9..8fcef50942 100644 --- a/detector/vuls2/vendor.go +++ b/detector/vuls2/vendor.go @@ -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 } }