From fa19b6e40157345debf0030483fc9731d4a26b01 Mon Sep 17 00:00:00 2001 From: Liam Galvin Date: Thu, 16 Dec 2021 12:02:32 +0000 Subject: [PATCH 1/2] add missing avd-id --- rules/aws/autoscaling/no_sensitive_info.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rules/aws/autoscaling/no_sensitive_info.go b/rules/aws/autoscaling/no_sensitive_info.go index a8196d468..d76deaa96 100755 --- a/rules/aws/autoscaling/no_sensitive_info.go +++ b/rules/aws/autoscaling/no_sensitive_info.go @@ -12,6 +12,7 @@ import ( var CheckNoSensitiveInfo = rules.Register( rules.Rule{ + AVDID: "AVD-AWS-0122", Provider: provider.AWSProvider, Service: "autoscaling", ShortCode: "no-sensitive-info", From 812cb1ee4b857fdf4e8fb32578db419797a6a9fc Mon Sep 17 00:00:00 2001 From: Liam Galvin Date: Thu, 16 Dec 2021 13:13:03 +0000 Subject: [PATCH 2/2] Fix formatter --- formatters/default.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/formatters/default.go b/formatters/default.go index b31349e24..c6c90d247 100644 --- a/formatters/default.go +++ b/formatters/default.go @@ -74,7 +74,10 @@ func printResult(res rules.Result, i int, includePassedChecks bool) { resultHeader := fmt.Sprintf(" Result %d\n", i+1) var severityFormatted string - if includePassedChecks && res.Status() == rules.StatusPassed { + if res.Status() == rules.StatusPassed { + if !includePassedChecks { + return + } terminal.PrintSuccessf(resultHeader) severityFormatted = tml.Sprintf("PASSED") } else {