From 41254c0222c88cb80dca3f9a4639bd94418df24e Mon Sep 17 00:00:00 2001 From: Barak Fatal <35402131+bo156@users.noreply.github.com> Date: Tue, 19 Nov 2024 11:55:05 +0200 Subject: [PATCH] fix(general): Used jsonpath to update vertex attributes (#6852) * Added calculation of Fn::Sub in case of using Pseudo Parameter as it is a default one from cloudformation and shouldn't exist in the code * Only do sub in case of pseudo parameter usage * added example * Middle of debugging, currently works * Refactored update attribtue code to a method for jsonpath specifically * Created test based on example * Do not return jsonpath key from inner function * Check key in attribtues before accessing it * Removed mistakenly changed calculation of end vertices * Removed tmp example files * Added try-except to handle errors when parsing the jsonpath attribute * Removed re module usage to improve performance * Implemented cache for jsonpath to improve performance * Updated threshold on linux machine performance from 10 to 11 * Removed bad comment: --- 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 c8b887bb983..4f0975476c0 100644 --- a/checkov/version.py +++ b/checkov/version.py @@ -1 +1 @@ -version = '3.2.302' +version = '3.2.303' diff --git a/kubernetes/requirements.txt b/kubernetes/requirements.txt index 638148c3284..e21963fa70a 100644 --- a/kubernetes/requirements.txt +++ b/kubernetes/requirements.txt @@ -1 +1 @@ -checkov==3.2.302 +checkov==3.2.303