vicenteguerra / git-deploy

Php Script for Auto-Pull in server (Using WebHook from GitLab, GitHub and Bitbucket)
641 stars 236 forks source link

Support for https for private OAUTH accounts using personal access tokens #36

Open nevmac opened 5 years ago

nevmac commented 5 years ago

I am hitting a wall and suspect it is the fact that GitHub requires OAUTH accounts to authenticate using only https using personal access tokens. I tried changing the URL to the https URL structure of https://[account]:[personalaccesstoken]@github.com/[account]/repo.git but still receive a "fatal: could not read Username for 'https://github.com': No such device or address" error. Any chance of support for OAUTH accounts using this method?

cubakcabak commented 5 years ago

this one works for me on gitlab

https://**oauth2**:_[personalaccesstoken]_@gitlab.com/_[account]_/_[repo]_.git

maybe you can try on github too, just change that [account] with fixed oauth2 string