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

Scanning Terraform modules from private git repositories #1611

Open
torbendury opened this issue Sep 5, 2023 · 0 comments
Open

Scanning Terraform modules from private git repositories #1611

torbendury opened this issue Sep 5, 2023 · 0 comments

Comments

@torbendury
Copy link

  • terrascan version: latest
  • Operating System: arbitrary Linux

Description

I'm using selfbuilt Terraform modules which are living in private git repositories (GitLab). Here, I want to be able to scan them from downstream projects which use the modules. Since the git repositories are private, I need to authenticate myself.

I want to authenticate via a) SSH or b) Username/Password (with b being preferred in my case).

What I Did

$ terrascan scan -i terraform -t gcp -v --non-recursive

2023-09-05T08:48:45.143Z	error	downloader/getter.go:105	failed to download "git::https://XXXXXXXXXXXXXXXXXX.git". error: 'error downloading 'https://XXXXXXXXXXXXXXXXXXXX.git': /usr/bin/git exited with 128: Cloning into '/tmp/fy8n5r'...
fatal: could not read Username for 'https://XXXXXXXXXXXXXX' No such device or address

I need to inject credentials into my CI/CD in a way that terrascan understands it, however I do not see any documentation on how terrascan can be enabled to scan remote private git repositories.

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

No branches or pull requests

1 participant