Skip to content

Commit

Permalink
feat: share build-in rules (#7207)
Browse files Browse the repository at this point in the history
  • Loading branch information
afdesk authored Jul 25, 2024
1 parent c3036de commit bff317c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/fanal/secret/builtin-rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ const (
aws = `aws_?`
)

// This function is exported for trivy-plugin-aqua purposes only
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 bff317c

Please sign in to comment.