mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-04 19:21:51 +00:00
fix(cis): show report table on the CLI (#6979)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"Framework": "CIS-AWS",
|
||||
"Framework": "CIS",
|
||||
"Version": "4.0.1",
|
||||
"Provider": "AWS",
|
||||
"Description": "The CIS Amazon Web Services Foundations Benchmark provides prescriptive guidance for configuring security options for a subset of Amazon Web Services with an emphasis on foundational, testable, and architecture agnostic settings.",
|
||||
|
||||
@@ -27,10 +27,8 @@ def get_cis_table(
|
||||
check = bulk_checks_metadata[finding.check_metadata.CheckID]
|
||||
check_compliances = check.Compliance
|
||||
for compliance in check_compliances:
|
||||
if (
|
||||
compliance.Framework == "CIS"
|
||||
and compliance.Version in compliance_framework
|
||||
):
|
||||
version_in_name = compliance_framework.split("_")[1]
|
||||
if compliance.Framework == "CIS" and version_in_name in compliance.Version:
|
||||
for requirement in compliance.Requirements:
|
||||
for attribute in requirement.Attributes:
|
||||
section = attribute.Section
|
||||
|
||||
Reference in New Issue
Block a user