From 8c0a095f2be4728adc0f32f563ccd091f0cb1634 Mon Sep 17 00:00:00 2001 From: afdesk Date: Mon, 22 Jul 2024 19:14:29 +0600 Subject: [PATCH] feat: update GetProviders --- pkg/iac/rules/providers.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/iac/rules/providers.go b/pkg/iac/rules/providers.go index 8d4d8f7d65f1..721b5191dbe1 100644 --- a/pkg/iac/rules/providers.go +++ b/pkg/iac/rules/providers.go @@ -67,6 +67,7 @@ func GetProviders() (providers []Provider) { sName := strings.ToLower(rule.GetRule().Service) cName := rule.GetRule().AVDID desc := rule.GetRule().Summary + severity := string(rule.GetRule().Severity) if _, ok := provs[pName]; !ok { provs[pName] = make(map[string][]Check) @@ -79,6 +80,7 @@ func GetProviders() (providers []Provider) { provs[pName][sName] = append(provs[pName][sName], Check{ Name: cName, Description: desc, + Severity: severity, }) }