Skip to content

Bicep file checks not functioning #7196

Open
@weekendclimber

Description

@weekendclimber

Describe the issue
Receive parsing error on Bicep files using the following command:

pip3 install checkov
checkov
checkov -d . --framework bicep --output sarif --output-file-path $OutputPath --enable-secret-scan-all-files

Examples
This is the results:
_ _
___| |__ ___ ___| | _______ __
/ __| '_ \ / _ \/ __| |/ / _ \ \ / /
| (__| | | | __/ (__| < (_) \ V /
\___|_| |_|\___|\___|_|\_\___/ \_/

By Prisma Cloud | version: 3.2.436
bicep scan results:

Passed checks: 0, Failed checks: 0, Skipped checks: 0, Parsing errors: 5

Error parsing file D:\a\1\s\infra\vnet\main.bicep
Error parsing file D:\a\1\s\infra\virtual-machine\modules\nic-configuration.bicep
Error parsing file D:\a\1\s\infra\vnet\subnet\main.bicep
Error parsing file D:\a\1\s\infra\virtual-machine\main.bicep
Error parsing file D:\a\1\s\infra\virtual-machine\extension\main.bicep

Version (please complete the following information):

  • Checkov Version 3.2.436

Additional context
Using this from a PowerShell script called from a pipeline task 'PowerShell@2' on a Windows based Microsoft hosted agent in Azure DevOps (windows-latest). The bicep files are directly from the Azure Verified Module repository.

Metadata

Metadata

Assignees

No one assigned

    Labels

    checksCheck additions or changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions