You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: