Skip to content

Commit be3c5fb

Browse files
authored
fix(cli): generate compliance after scan (#10919)
1 parent 1de01bc commit be3c5fb

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

prowler/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ All notable changes to the **Prowler SDK** are documented in this file.
1414

1515
---
1616

17+
## [5.25.1] (Prowler v5.25.1)
18+
19+
### 🐞 Fixed
20+
21+
- `KeyError` when generating compliance outputs after the CLI scan [#10919](https://github.com/prowler-cloud/prowler/pull/10919)
22+
23+
---
24+
1725
## [5.25.0] (Prowler v5.25.0)
1826

1927
### 🚀 Added

prowler/__main__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,8 +624,14 @@ def streaming_callback(findings_batch):
624624
)
625625

626626
# Compliance Frameworks
627+
# Source the framework listing from `bulk_compliance_frameworks.keys()`
628+
# so it is by construction a subset of what the bulk loader can resolve.
629+
# `get_available_compliance_frameworks(provider)` also discovers top-level
630+
# multi-provider universal JSONs (e.g. `prowler/compliance/csa_ccm_4.0.json`)
631+
# which `Compliance.get_bulk(provider)` does not load, and which the legacy
632+
# output handlers below cannot consume — using it as the source produced
627633
input_compliance_frameworks = set(output_options.output_modes).intersection(
628-
get_available_compliance_frameworks(provider)
634+
bulk_compliance_frameworks.keys()
629635
)
630636
if provider == "aws":
631637
for compliance_name in input_compliance_frameworks:

0 commit comments

Comments
 (0)