Skip to content

Commit

Permalink
fix(terraform_plan): run post_runner after get_enriched_resources for…
Browse files Browse the repository at this point in the history
… terraform_plan (#6883)

* run post_runner after get_enriched_resources for terraform_plan

* run post_runner after get_enriched_resources for terraform_plan

* run post_runner after get_enriched_resources for terraform_plan
  • Loading branch information
lirshindalman authored Dec 1, 2024
1 parent e240791 commit 0d71c6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checkov/common/runners/runner_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ def should_add_sca_results_to_sca_supported_ir_report(sub_report: Report, sub_re
return False

def _handle_report(self, scan_report: Report, repo_root_for_plan_enrichment: list[str | Path] | None) -> None:
integration_feature_registry.run_post_runner(scan_report)
if metadata_integration.check_metadata:
RunnerRegistry.enrich_report_with_guidelines(scan_report)
if repo_root_for_plan_enrichment and not self.runner_filter.deep_analysis:
Expand All @@ -280,6 +279,7 @@ def _handle_report(self, scan_report: Report, repo_root_for_plan_enrichment: lis
)
scan_report = Report("terraform_plan").enrich_plan_report(scan_report, enriched_resources)
scan_report = Report("terraform_plan").handle_skipped_checks(scan_report, enriched_resources)
integration_feature_registry.run_post_runner(scan_report)
self.scan_reports.append(scan_report)

def save_output_to_file(self, file_name: str, data: str, data_format: str) -> None:
Expand Down

0 comments on commit 0d71c6f

Please sign in to comment.