Skip to content

checkov runner IndexError #7091

@lukelloydagi

Description

@lukelloydagi

Describe the issue
MegaLinter v8.4.0 (checkov v3.2.357) & MegaLinter v8.4.2 (checkov v3.2.360) throws this error:

Failed to invoke function /venvs/checkov/lib/python3.12/site-packages/checkov/common/runners/runner_registry._parallel_run with (<checkov.arm.runner.Runner object at 0x7fe367867680>, '.', None, None, <checkov.runner_filter.RunnerFilter object at 0x7fe3678ce750>, True, None)

Exception traceback:
Traceback (most recent call last):
  File "/venvs/checkov/lib/python3.12/site-packages/checkov/main.py", line 532, in run
    self.scan_reports = runner_registry.run(
                        ^^^^^^^^^^^^^^^^^^^^
  File "/venvs/checkov/lib/python3.12/site-packages/checkov/common/runners/runner_registry.py", line 177, in run
    for result in parallel_runner_results:
                  ^^^^^^^^^^^^^^^^^^^^^^^
  File "/venvs/checkov/lib/python3.12/site-packages/checkov/common/parallelizer/parallel_runner.py", line 110, in _run_function_multiprocess_fork
    raise v.internal_exception.with_traceback(v.internal_exception.__traceback__)
IndexError: list index out of range

Additional context
I've already raised with MegaLinter (oxsecurity/megalinter#4906)
Nicolas has said it looks to be a checkov internal error and so I'm raising here

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions