Skip to content

Commit

Permalink
fix(general): Used jsonpath to update vertex attributes (#6852)
Browse files Browse the repository at this point in the history
* 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:
  • Loading branch information
bo156 authored and actions-user committed Nov 19, 2024
1 parent 6a59caf commit 41254c0
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 = '3.2.302'
version = '3.2.303'
2 changes: 1 addition & 1 deletion kubernetes/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
checkov==3.2.302
checkov==3.2.303

0 comments on commit 41254c0

Please sign in to comment.