Skip to content

Commit

Permalink
feat: update GetProviders
Browse files Browse the repository at this point in the history
  • Loading branch information
afdesk committed Jul 22, 2024
1 parent e65c3df commit 8c0a095
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/iac/rules/providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -79,6 +80,7 @@ func GetProviders() (providers []Provider) {
provs[pName][sName] = append(provs[pName][sName], Check{
Name: cName,
Description: desc,
Severity: severity,
})
}

Expand Down

0 comments on commit 8c0a095

Please sign in to comment.