diff --git a/.github/workflows/pr-test.yml b/.github/workflows/pr-test.yml index 118a6f32c04..3d1fe89913d 100644 --- a/.github/workflows/pr-test.yml +++ b/.github/workflows/pr-test.yml @@ -88,7 +88,12 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Install pipenv run: | - python -m pip install --no-cache-dir --upgrade pipenv + if [ '${{ matrix.python }}' == '3.12' ]; then + # needed for numpy + python -m pip install --no-cache-dir --upgrade pipenv==2024.0.3 + else + python -m pip install --no-cache-dir --upgrade pipenv + fi - name: Install dependencies run: | # remove venv, if exists diff --git a/checkov/common/graph/graph_builder/utils.py b/checkov/common/graph/graph_builder/utils.py index 17d95a2c535..d6438cf5f0b 100644 --- a/checkov/common/graph/graph_builder/utils.py +++ b/checkov/common/graph/graph_builder/utils.py @@ -36,7 +36,6 @@ def run_function_multithreaded( def filter_sub_keys(key_list: list[str]) -> list[str]: filtered_key_list = [] - for key in key_list: if not any(other_key != key and other_key.startswith(key) for other_key in key_list) and is_include_dup_dynamic(key, key_list): filtered_key_list.append(key)