Hello, coming here from drone's discourse forum, it is no longer possible to authenticate using the x-oauth-basic as used previously in version 1.1.4
git clone https://{TOKEN}:[email protected]/Org/Repo.git
yields
remote: invalid credentials
fatal: Authentication failed for 'https://{TOKEN}:[email protected]/Org/Repo.git/'
In version 1.1.4 it succesfully clones the repository.
Using
git clone https://{USERNAME}:{TOKEN}@gitea.my.domain/Org/Repo.git
it is possible to clone the repository in version 1.2.0-rc1 and 1.2.0-rc2
This unfortunatelly breaks the drone builds as the plugins/git docker image uses the x-oauth-basic to clone the repository. I am not sure if there was a decistion to drop the x-oauth-basic or if it is a bug since I did not find a relevant issue or a mention of the change in changelog. So it is not clear whether the issue should be fixed from the side of gitea or if the drone plugin should be updated to support the current scheme.
git clone https://{OAUTH_TOKEN_REDACTED}:[email protected]/Org/Repo.git
git clone https://{USERNAME}:{TOKEN}@try.gitea.com/Org/Repo.git
It's a regression from #2184
Just hit this myself, anyone working on a fix ?
Have you enabled 2FA?
nope, just upgraded via docker pull not sure why that would help ?
as far as I know drone does not do two factor in this way.
happy to be proven wrong and give it a try, if I go to enable it I need to give the passcode to drone so not sure where I would do that ?
@olymk2 2FA wouldn't help, it's just that the PR introducing this bug was about disabling regular https auth for 2FA users, allowing them only to pull via https with a token.
in case its helpful this is the original discussion on the drone forum
@tboerger has made a PR to drone to support the username/token requirements of gitea >=1.2.0 https://github.com/drone/drone/pull/2241
Not sure if the issue is still relevant because of other software compatibility or if the username/token combination will become a new requirement.
Most helpful comment
It's a regression from #2184