-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Does Atlantis support git clone with ssh? #1635
Comments
have you ever figured this out @amna-ali ? |
@dgokcin nope, it doesn't support in Atlantis so i enabled https in Gitlab |
@amna-ali so I am using atlantis with a github app. my atlantis instance has ATLANTIS_GH_APP_KEY and ATLANTIS_GH_APP_ID environment variables. I see in the logs that atlantis is having problems with my pre_workflow_hooks which tries updating a submodule(the repo where I have common Infrastructure resources) Here is my log output. Any idea if this is related with your problem or not?
|
@dgokcin did you figure out your pre-workflow hook problem? |
Atlantis uses HTTPS to clone git repos. does Atlantis support ssh? i have installed Atlantis on my own infra (EC2) and use this command to start Atlantis
./atlantis server --atlantis-url="http://xxxxxxxxxxxx:4141" --gitlab-user="my_user" --gitlab-token="xxxxxxxxxxx" --gitlab-webhook-secret="xxxxxxxxxxxxxxxxxxx" --gitlab-hostname="my gitlab server(gitlab enterprise)" --repo-allowlist="gitlab_url/operations/terraform/xxxxxxxxxx"
when I run PR on my Enterprise GitLab, Atlantis starts to run the TF plan but I got this error message
running git clone --branch ec22222222 --depth=1 --single-branch https://my_user:<redacted>@gitlab_url/operations/terraform/xxxxxxxxxxxx/home/atlantis/.atlantis/repos/operations/terraform/xxxxxxx/30/default: Cloning into '/home/atlantis/.atlantis/repos/operations/terraform/xxxxxxxxxx/30/default'... remote: Git access over HTTP is not allowed fatal: unable to access 'https://gitlab_url/operations/terraform/xxxxxxxxxxx/': The requested URL returned error: 403 : exit status 128
I tried the workaround in this link but it doesn't work
Also, I tried to add
--write-git-creds
into Atlantis start-up command and added ssh (ssh://git@gitlab_url:9922) link in.git-credentials
but doesn't work too.The text was updated successfully, but these errors were encountered: