diff --git a/pkg/fanal/secret/builtin-rules.go b/pkg/fanal/secret/builtin-rules.go index cada98d6681a..ed23c4fa18b0 100644 --- a/pkg/fanal/secret/builtin-rules.go +++ b/pkg/fanal/secret/builtin-rules.go @@ -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 {