Issue with Cloning a Specific Branch from a Private GitLab Repo Using SSH in Envbuilder
Hi everyone,
I'm encountering an issue when using Envbuilder with SSH for cloning private repositories. Here's what I've noticed:
When I work with a public repository and use HTTPS, everything works fine. I can clone the main branch and even specify another branch, as described in the documentation, like this:
However, when I switch to a private repository that requires SSH authentication, I can successfully clone the main branch, but I'm unable to specify a different branch (e.g., sample-branch). Here's the Git URL format I'm using for the private repo:
The error I get in the logs when trying to clone with a specified branch is:
Am I making any syntax errors, or has anyone else faced a similar issue when using SSH and specifying a branch? Any advice or guidance on how to resolve this would be greatly appreciated.
Thanks in advance for your help!
Solution:Jump to solution
I have opened an issue so our engineers can take a look at implenting it -> https://github.com/coder/envbuilder/issues/456
in the meantime I'd suggest you'd look into using External Auth instead of using HTTP deploy tokens...
8 Replies
<#1354136229498585158>
Category
Bug report
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
hey @Mikel try getting rid of the trailing slash at the end of your URL
ah nevermind, didn't read the full thing
yeah I don't think it's possible with SSH, i'll try/ask
Hey @Phorcys thanks for your answer, in the meantime I was able to clone the private repo with deploy tokens using https but it would be nice to know more about the SSH limitations 🙂
I have asked internally and it seems we didn't factor that in when implementing it
Solution
I have opened an issue so our engineers can take a look at implenting it -> https://github.com/coder/envbuilder/issues/456
in the meantime I'd suggest you'd look into using External Auth instead of using HTTP deploy tokens
Oh great, we will adapt our use case to use External Auth then, thanks for your help! 🙂
sounds good!
@Phorcys closed the thread.