Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chekov hangs during scanning terraform module with syntax typo #6762

Open
dukhlov opened this issue Oct 10, 2024 · 0 comments
Open

Chekov hangs during scanning terraform module with syntax typo #6762

dukhlov opened this issue Oct 10, 2024 · 0 comments
Labels

Comments

@dukhlov
Copy link

dukhlov commented Oct 10, 2024

Describe the issue
In case of syntax mistake in terraform provider.assume_role.role_arn string interpolation checkov hangs, eats 100% of a single cpu core. Exit with a failure is expected
Examples
Create a simple terraform module test_module with a single file
main.tf:

variable "account_id" {
  type = string
}

variable "role_name" {
  type = string
}

provider "aws" {
  assume_role {
    role_arn     = "arn:aws:iam::${var.account_id}:role/${var.role_name"
  }
}

run checkov -d test_module

Exception Trace

There is no exception. Log just got stuck

Desktop (please complete the following information):

  • OS: MacOS 13.5
  • Checkov Version: 3.2.255
@dukhlov dukhlov added the crash label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant