From 4b894bcf66a58863e78f4469bf70130472f38e91 Mon Sep 17 00:00:00 2001 From: DmitriyLewen Date: Tue, 9 Jan 2024 16:46:18 +0600 Subject: [PATCH] fix(secret): aws secret must include `aws` text --- pkg/fanal/secret/builtin-rules.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/fanal/secret/builtin-rules.go b/pkg/fanal/secret/builtin-rules.go index ce6baa99a245..94da8a3b722a 100644 --- a/pkg/fanal/secret/builtin-rules.go +++ b/pkg/fanal/secret/builtin-rules.go @@ -78,7 +78,7 @@ const ( startSecret = `(^|\s+)` endSecret = `(\s+|$)` - aws = `(aws)?_?` + aws = `aws_?` ) // This function is exported for trivy-plugin-aqua purposes only