Skip to content

Commit

Permalink
fix(terraform): Nested source_module_objects with missing foreach key (
Browse files Browse the repository at this point in the history
…bridgecrewio#5580)

* made TFModule a frozen immutable dataclass, didn't update all usages yet

* replaced one mutable location with a function that recursively nullifies all foreach indices

* Updated second todo area to use recursion with immutable objects instead of mutable

* Also made TFDefinitionKey immutable

* Fixed insertion of foreach keys for all vertices and updated test to check for them all

* middle of final debug - fixed foreach key for 12/16 resources in test

* Fixed creation of foreach indices for all resources of all types

* flake8

* Added another tf_definitions check for the new test to make sure all foreach key exists always

* moved _get_module_with_only_relevant_foreach_idx to module_handler as this is the only place where it's used

* empty commit to retrigger checks
  • Loading branch information
bo156 authored and actions-user committed Sep 20, 2023
1 parent 840e6b3 commit da9d89d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion checkov/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = '2.4.46'
version = '2.4.47'
2 changes: 1 addition & 1 deletion kubernetes/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
checkov==2.4.46
checkov==2.4.47

0 comments on commit da9d89d

Please sign in to comment.