Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(terraform_plan): run post_runner after get_enriched_resources for terraform_plan #6883

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
lirshindalman marked this conversation as resolved.
Show resolved Hide resolved
self.scan_reports.append(scan_report)

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