Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
error handling
  • Loading branch information
omriyoffe-panw committed Dec 2, 2024
commit 4ea1bfc29a9bd908704a8266fe42dedcca0fd487
4 changes: 4 additions & 0 deletions checkov/arm/runner.py
Original file line number Diff line number Diff line change
@@ -265,6 +265,10 @@ def add_graph_check_results(self, report: Report, runner_filter: RunnerFilter) -
start_line = entity[START_LINE] - 1
end_line = entity[END_LINE] - 1

if CustomAttributes.RESOURCE_TYPE not in entity or CustomAttributes.BLOCK_NAME not in entity:
logging.debug(f"Could not determine 'resource_id' of Entity {entity_file_path}")
continue

self.build_record(
report=report,
check=check,