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, }) }