mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-22 07:10:41 -08:00
fix: fix k8s rbac filter (#2765)
This commit is contained in:
@@ -422,7 +422,8 @@ func disabledAnalyzers(opts flag.Options) []analyzer.Type {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Do not perform misconfiguration scanning when it is not specified.
|
// 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...)
|
analyzers = append(analyzers, analyzer.TypeConfigFiles...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user