Skip to content

ARM Framework issue in Checkov (Azure Devops) #7633

Description

@prabhusirpi

Describe the issue
We are testing the checkov sast scanning in our environment. We created a custom policy and added arm, secrets & bicep in the framework. While running the scan in the azure devops pipeline, we are getting the below pipeline error:
File "/home/vsts/.local/lib/python3.12/site-packages/checkov/common/runners/runner_registry.py", line 177, in run
for result in parallel_runner_results:
File "/home/vsts/.local/lib/python3.12/site-packages/checkov/common/parallelizer/parallel_runner.py", line 118, in _run_function_multiprocess_fork
raise v.internal_exception.with_traceback(v.internal_exception.traceback)
IndexError: list index out of range

This error happens only if we have arm in the framework, if we just keep bicep and secret, its working fine.

Examples
- script: |
mkdir -p $(CHECKOV_OUTPUT_DIR)
displayName: 'Create Output Directory'

      - script: |
          checkov \
            --directory . \
            --framework arm secrets \
            --output cli \
            --output junitxml \
            --output-file-path $(CHECKOV_OUTPUT_DIR) \
            --soft-fail \
            --enable-secret-scan-all-files \
            --compact \
            --external-checks-dir custom_policies \
            --no-fail-on-crash \
            --skip-path target \
            --skip-path Library \
            --skip-path sonar-scan

Desktop (please complete the following information):

  • OS: ubuntu-latest
  • Checkov Version - checkov==3.3.7

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions