Skip to content

Commit

Permalink
fead: add severity field to providers export
Browse files Browse the repository at this point in the history
  • Loading branch information
afdesk committed Jul 22, 2024
1 parent 9269563 commit 13956c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/fanal/secret/builtin-rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ func GetSecretRulesMetadata() []iacRules.Check {
return iacRules.Check{
Name: rule.ID,
Description: rule.Title,
Severity: rule.Severity,
}
})
}
Expand Down
1 change: 1 addition & 0 deletions pkg/iac/rules/providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ type Service struct {
type Check struct {
Name string `json:"name"`
Description string `json:"description"`
Severity string `json:"severity"`
}

func GetProvidersHierarchy() (providers map[string]map[string][]string) {
Expand Down

0 comments on commit 13956c6

Please sign in to comment.