fix(cli): generate compliance after scan (#10919)

This commit is contained in:
Pepe Fagoaga
2026-04-28 17:18:30 +02:00
committed by GitHub
parent 1de01bcb78
commit be3c5fb3c1
2 changed files with 15 additions and 1 deletions
+8
View File
@@ -14,6 +14,14 @@ All notable changes to the **Prowler SDK** are documented in this file.
---
## [5.25.1] (Prowler v5.25.1)
### 🐞 Fixed
- `KeyError` when generating compliance outputs after the CLI scan [#10919](https://github.com/prowler-cloud/prowler/pull/10919)
---
## [5.25.0] (Prowler v5.25.0)
### 🚀 Added
+7 -1
View File
@@ -624,8 +624,14 @@ def prowler():
)
# Compliance Frameworks
# Source the framework listing from `bulk_compliance_frameworks.keys()`
# so it is by construction a subset of what the bulk loader can resolve.
# `get_available_compliance_frameworks(provider)` also discovers top-level
# multi-provider universal JSONs (e.g. `prowler/compliance/csa_ccm_4.0.json`)
# which `Compliance.get_bulk(provider)` does not load, and which the legacy
# output handlers below cannot consume — using it as the source produced
input_compliance_frameworks = set(output_options.output_modes).intersection(
get_available_compliance_frameworks(provider)
bulk_compliance_frameworks.keys()
)
if provider == "aws":
for compliance_name in input_compliance_frameworks: