diff --git a/checkov/serverless/graph_builder/local_graph.py b/checkov/serverless/graph_builder/local_graph.py index 6601f4bca5a..2cd90746b03 100644 --- a/checkov/serverless/graph_builder/local_graph.py +++ b/checkov/serverless/graph_builder/local_graph.py @@ -59,7 +59,7 @@ def _create_vertex(self, file_path: str, definition: dict[str, Any] | None, else: for attribute in resources: - if attribute in LINE_FIELD_NAMES: + if isinstance(attribute, str) and attribute in LINE_FIELD_NAMES: continue if isinstance(resources, list): diff --git a/tests/arm/checks/resource/example_TestMySQLPublicAccessDisabled/fail2.json b/tests/arm/checks/resource/example_TestMySQLPublicAccessDisabled/fail2.json index fa88ce13028..73780d243ef 100644 --- a/tests/arm/checks/resource/example_TestMySQLPublicAccessDisabled/fail2.json +++ b/tests/arm/checks/resource/example_TestMySQLPublicAccessDisabled/fail2.json @@ -15,7 +15,7 @@ "location": "eastus", "properties": { "administratorLogin": "adminuser", - "administratorLoginPassword": "YourSecurePassword123!", + "administratorLoginPassword": "1234", "availabilityZone": "1", "backup": { "backupIntervalHours": 24, diff --git a/tests/arm/checks/resource/example_TestMySQLPublicAccessDisabled/pass2.json b/tests/arm/checks/resource/example_TestMySQLPublicAccessDisabled/pass2.json index d3446b6b07d..a506b7eb7f3 100644 --- a/tests/arm/checks/resource/example_TestMySQLPublicAccessDisabled/pass2.json +++ b/tests/arm/checks/resource/example_TestMySQLPublicAccessDisabled/pass2.json @@ -15,7 +15,7 @@ "location": "eastus", "properties": { "administratorLogin": "adminuser", - "administratorLoginPassword": "YourSecurePassword123!", + "administratorLoginPassword": "1234", "availabilityZone": "1", "backup": { "backupIntervalHours": 24,