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

Terraform module git source with multiple url parameters #6903

Open
levess007 opened this issue Dec 12, 2024 · 0 comments
Open

Terraform module git source with multiple url parameters #6903

levess007 opened this issue Dec 12, 2024 · 0 comments

Comments

@levess007
Copy link

Describe the issue
The issue is that if there are multiple url parameters in a git source in a terraform module, the download-external-modules option is not wirking, because the extraction of the git ref is incorrect.
So for example in the following case it fails to get the correct value:
source = "git::https://some.git.repo.address.com?depth=1&ref=v3.6.1"
This should result in checkov downloading the v3.6.1 tag from the repo, but it can't find it.

It also can't resolve the address if the depth is the other way around, so like
source = "git::https://some.git.repo.address.com?ref=v3.6.1&depth=1"
Because in this case the depth will also be part of the extracted ref value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant