checkov icon indicating copy to clipboard operation
checkov copied to clipboard

checkov runner IndexError

Open lukelloydagi opened this issue 7 months ago • 3 comments

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 (https://github.com/oxsecurity/megalinter/issues/4906) Nicolas has said it looks to be a checkov internal error and so I'm raising here

lukelloydagi avatar Apr 09 '25 13:04 lukelloydagi

It would be difficult to debug without knowing at least what is the running command and on what files it crashes. Can you provide that info?

maxamel avatar Apr 09 '25 17:04 maxamel

It would be difficult to debug without knowing at least what is the running command and on what files it crashes. Can you provide that info?

@nvuillam, are you able to provide the info?

lukelloydagi avatar Apr 10 '25 09:04 lukelloydagi

@lukelloydagi you can find how checkov is called in MegaLinter logs :)

Example below

Image

nvuillam avatar Apr 14 '25 08:04 nvuillam

Thanks for contributing to Checkov! We've automatically marked this issue as stale to keep our issues list tidy, because it has not had any activity for 6 months. It will be closed in 14 days if no further activity occurs. Commenting on this issue will remove the stale tag. If you want to talk through the issue or help us understand the priority and context, feel free to add a comment or join us in the Checkov slack channel at codifiedsecurity.slack.com Thanks!

stale[bot] avatar Oct 11 '25 12:10 stale[bot]

Closing issue due to inactivity. If you feel this is in error, please re-open, or reach out to the community via slack: codifiedsecurity.slack.com Thanks!

stale[bot] avatar Oct 30 '25 04:10 stale[bot]