-
Notifications
You must be signed in to change notification settings - Fork 100
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
Can't download external (private) repositories #101
Comments
Hey @nass-altice, can you please try setting the |
hey @tronxd,
If right, i already tried :/ |
Hey @nass-altice , thank you for the clarification. |
Yes of course:
|
Hi @nass-altice, I have inspected the configuration and we have support in checkov for unprefixed github.com URLs, so assuming your token is valid, this should work. |
Sorry for the late ... |
@nass-altice Can you please try adding a |
Yes of course ! It's what i've done. |
Same issue here. We use a GitHub App to get tokens for the private GH repos for all of our external module dependencies and then we use the .gitconfig to insert the tokens which are specific to each module/repo. This works perfectly for Terraform, but not for Checkov which for some reason doesn't respect the .gitconfig settings.
Checkov Action always fails like so:
Terraform picks up the insteadOf from the .gitconfig and pulls the modules properly:
Here's what the module source looks like:
|
I would really like it if the checkov action could use an installation access token like the output of machine-learning-apps/actions-app-token (https://github.com/machine-learning-apps/actions-app-token). Not sure if that's possible, but would resolve my issues. |
So I did some testing locally with checkov and checkov obeys .gitconfig when run locally, just not when run via checkov-action. I then noticed that the action runs in a container and so that's why it doesn't know about .gitconfig and does not respect it. |
Hey everyone, feel free to check my PR which just adds the docs, but it is already fixed with the latest version. |
Very cool! Any idea when it will be incorporated into the checkov-action for GitHub Actions? |
Hi,
We've got an issue with downloading external terraform modules on private github namespace.
We tried with
github_pat
variable without success and also tried "git config" hack to replace allhttps://github.com
occurences:Here is our github action configuration for checkov:
Can you help ?
If you need some details, feel free to ask.
Thanks !
The text was updated successfully, but these errors were encountered: