From bff317c77bf4a5f615a80d9875d129213bd52f6d Mon Sep 17 00:00:00 2001 From: afdesk Date: Thu, 25 Jul 2024 16:41:40 +0600 Subject: [PATCH] feat: share build-in rules (#7207) --- pkg/fanal/secret/builtin-rules.go | 5 +++++ 1 file changed, 5 insertions(+) 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 {