Trying to get HTTPS git repo to work with semaphore #2042
Unanswered
jengstrom440
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an interesting problem. I am running 2.9.75 on ubuntu 24.04 lts after having problems with the snap install. I created a git project in azure devops repo as private. I put a simple ansible playbook in it to ping google in the shell on localhost, which I have tested and works fine. I add the repo address in HTTPS and add the pat in the key store as username/password, with username blank and the pat as the password. I have also tried the bitbucket method with the x-auth-token without any luck, nor setting the account name. It won't sync and gives me a "URL rejected: Bad hostname" But when I change the git repo to public, and change the access key to none, it works! I made no other changes, including hostname so I know that's not the real problem. Ideas?
EDIT:I am having the same problem with GitHub. Any ideas? I have spent several hours on research and troubleshooting so far. Thanks!
2nd EDIT: I have also tried generating an rsa ssh key and switched the repo to use ssh, and it worked. So to add a question is https not working correctly or am I doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions