fix(cis): show report table on the CLI (#6979)

This commit is contained in:
Pedro Martín
2025-02-25 09:43:58 +01:00
committed by GitHub
parent 3c56eb3762
commit 391bbde353
2 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -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.",
+2 -4
View File
@@ -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