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

[question]: where do you set the terragrunt github username and password #196

Open
2 tasks done
uptownhr opened this issue Jan 8, 2025 · 0 comments
Open
2 tasks done
Assignees
Labels
question Further information is requested triage Needs to be triaged

Comments

@uptownhr
Copy link
Collaborator

uptownhr commented Jan 8, 2025

Prior Search

  • I have already searched this project's issues to determine if a similar question has already been asked.

What is your question?

When using a private repo for IAC, and an environment has been pinned to a version. Running terragrunt apply locally attempts to pull the git ref of that IAC repo but is requesting I add in the username and password.

In CI, this fails as follows,

* downloading source url git::https://github.com/some-project/panfactum.git?ref=c4faf5fda04dc7ff0e03ac58b93324ecf61c5cf3/infrastructure//service_cron_jobs
  error occurred:
  
  * error downloading 'https://github.com/some-project/panfactum.git?ref=c4faf5fda04dc7ff0e03ac58b93324ecf61c5cf3%2Finfrastructure%2F%2Fservice_cron_jobs': /bin/git exited with 128: Cloning into '/tmp/.terragrunt/F_YsDVtsZueiuJXVagVfUeW4bKY/H5ik8Y2Wojt9rAz5bGo1gNysWXg'...
    fatal: could not read Username for 'https://github.com': No such device or address

My panfactum.yaml looks like

environments_dir: environments
iac_dir: infrastructure
repo_url: git::https://github.com/some-project/panfactum.git
repo_name: panfactum
repo_primary_branch: main

Where is the username:password supposed to be stored?

Also, why does this only occur once a version has been pinned?

What primary components of the stack does this relate to?

terraform

Code of Conduct

  • I agree to follow this project's Code of Conduct
@uptownhr uptownhr added question Further information is requested triage Needs to be triaged labels Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested triage Needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants