Skip to content

Commit

Permalink
fix(serverless): Fix serverless check crash (#6909)
Browse files Browse the repository at this point in the history
* check attribute is string
  • Loading branch information
omriyoffe-panw authored Dec 17, 2024
1 parent a657e60 commit fbd4345
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion checkov/serverless/graph_builder/local_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"location": "eastus",
"properties": {
"administratorLogin": "adminuser",
"administratorLoginPassword": "YourSecurePassword123!",
"administratorLoginPassword": "1234",
"availabilityZone": "1",
"backup": {
"backupIntervalHours": 24,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"location": "eastus",
"properties": {
"administratorLogin": "adminuser",
"administratorLoginPassword": "YourSecurePassword123!",
"administratorLoginPassword": "1234",
"availabilityZone": "1",
"backup": {
"backupIntervalHours": 24,
Expand Down

0 comments on commit fbd4345

Please sign in to comment.