From 2f2952c65842594aef6fc2241e372bb016513cfd Mon Sep 17 00:00:00 2001 From: Jose Donizetti Date: Tue, 23 Aug 2022 05:56:06 -0300 Subject: [PATCH] fix: fix k8s rbac filter (#2765) --- pkg/commands/artifact/run.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/commands/artifact/run.go b/pkg/commands/artifact/run.go index e90e22de87..b04bdce70c 100644 --- a/pkg/commands/artifact/run.go +++ b/pkg/commands/artifact/run.go @@ -422,7 +422,8 @@ func disabledAnalyzers(opts flag.Options) []analyzer.Type { } // Do not perform misconfiguration scanning when it is not specified. - if !slices.Contains(opts.SecurityChecks, types.SecurityCheckConfig) { + if !slices.Contains(opts.SecurityChecks, types.SecurityCheckConfig) && + !slices.Contains(opts.SecurityChecks, types.SecurityCheckRbac) { analyzers = append(analyzers, analyzer.TypeConfigFiles...) }