Skip to content

Commit

Permalink
fix(cis): show report table on the CLI (#6979)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrooot authored Feb 25, 2025
1 parent 3c56eb3 commit 391bbde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion prowler/compliance/aws/cis_4.0_aws.json
Original file line number Diff line number Diff line change
@@ -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.",
Expand Down
6 changes: 2 additions & 4 deletions prowler/lib/outputs/compliance/cis/cis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 391bbde

Please sign in to comment.