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