Skip to content

Commit

Permalink
feat(kustomize): add back reverted kustomize annotations and update b…
Browse files Browse the repository at this point in the history
…uild github action to use github runners (#5316)

* feat(kustomize): Add origin annotations to calculate bases of kustomize checks (#5298)

* Added basic implementation of adding and removing buildmetadata originAnnotations

* Only remove the new buildmetadata if it wasn't added successfully by checkov

* middle of debugging

* more improvements

* Successfully updated the file path

* middle of adding correct base code lines

* Fixed calculation of caller file path

* another debug way

* Another addition

* Fixed bug where we calculate the base for overlay incorrectly, causing us to copy overlays to wrong directory

* Calculated relative directory to new base

* Allowed empty caller file lines and fixed all kustomize tests

* Added tests for caller file paths

* Added support for caller file path in graph reports and updated tests accordingly

* Fixed parsing of kustomization files with resources which actually represent overlays

* Added env variable to allow kustomize file edits

* Removed comment

* Updated _get_caller_file_path signature

* Linters

* nosec on subprocess.Popen as we are incharge of the command

* Added condition that annotations are not None

* CR

* find correct parent without loop

Co-authored-by: Anton Grübel <[email protected]>

* don't check len

Co-authored-by: Anton Grübel <[email protected]>

* Used subprocess.run

* moved env var to another place in the instance

* Fixed all tests:

* Check for origin_relative_path before concat

* Added documentation

---------

Co-authored-by: Anton Grübel <[email protected]>

* Moved build job unit tests to use public images instead of self-hosted, as a bug exist in the hosted version

---------

Co-authored-by: Anton Grübel <[email protected]>
  • Loading branch information
2 people authored and actions-user committed Jul 10, 2023
1 parent d560e75 commit de06422
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.3.317'
version = '2.3.318'
2 changes: 1 addition & 1 deletion kubernetes/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
checkov==2.3.317
checkov==2.3.318

0 comments on commit de06422

Please sign in to comment.