From da9d89d0bed0d7c6d9a4a623e9dd52a99a3f397b Mon Sep 17 00:00:00 2001 From: Barak Fatal <35402131+bo156@users.noreply.github.com> Date: Wed, 20 Sep 2023 17:22:30 +0300 Subject: [PATCH] fix(terraform): Nested source_module_objects with missing foreach key (#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 --- checkov/version.py | 2 +- kubernetes/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/checkov/version.py b/checkov/version.py index bc213e5cb8d..8790b3f0b44 100644 --- a/checkov/version.py +++ b/checkov/version.py @@ -1 +1 @@ -version = '2.4.46' +version = '2.4.47' diff --git a/kubernetes/requirements.txt b/kubernetes/requirements.txt index a84c9f193cc..3beffc53ffe 100644 --- a/kubernetes/requirements.txt +++ b/kubernetes/requirements.txt @@ -1 +1 @@ -checkov==2.4.46 +checkov==2.4.47