Skip to content

Crash with policy CKV_AZURE_13 #7190

@magdadziemianowicz

Description

@magdadziemianowicz

Describe the issue
When I run checkov scan using the plan file in JSON format, the checkov reports below error for each of my app services:

[MainThread ] [ERROR] Failed to run check CKV_AZURE_13 on /tf.json:azurerm_windows_web_app.app Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/checkov/common/checks/base_check.py", line 68, in run check_result["result"] = self.scan_entity_conf(entity_configuration, entity_type) File "/usr/local/lib/python3.11/site-packages/checkov/terraform/checks/resource/base_resource_check.py", line 43, in scan_entity_conf return self.scan_resource_conf(conf) File "/usr/local/lib/python3.11/site-packages/checkov/terraform/checks/resource/azure/AppServiceAuthentication.py", line 19, in scan_resource_conf if auth.get("enabled") and isinstance(auth.get("enabled"), list): File "/usr/local/lib/python3.11/site-packages/checkov/common/parsers/node.py", line 226, in __getattr__ raise TemplateAttributeError(f'{name} is invalid') checkov.common.parsers.node.TemplateAttributeError: get is invalid

Desktop:

  • OS: Ubuntu 24.04
  • Checkov Version 3.2.403

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