Skip to content

Commit

Permalink
feat: return all builtin rules through GetBuiltinRules
Browse files Browse the repository at this point in the history
  • Loading branch information
afdesk committed Jul 25, 2024
1 parent 9269563 commit 59df7ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/fanal/secret/builtin-rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ const (
aws = `aws_?`
)

func GetBuiltinRules() []Rule {
return builtinRules
}

// This function is exported for trivy-plugin-aqua purposes only
func GetSecretRulesMetadata() []iacRules.Check {
return lo.Map(builtinRules, func(rule Rule, i int) iacRules.Check {
Expand Down

0 comments on commit 59df7ac

Please sign in to comment.