Revert "BUILD-4733: Use the correct url format for cloning with an access token"

This reverts commit 72febdb50709c0edba5ead3d6b139812cb557f8c.
This commit is contained in:
Mate Molnar 2024-07-16 15:29:29 +02:00
parent 7d64c96a75
commit cf35ea3595

View File

@ -155,7 +155,7 @@ def checkout_repo(repo):
git_url=f"https://github.com/SonarSource/{repo}"
token=os.getenv('GITHUB_TOKEN')
if token:
git_url=f"https://oauth2:${token}@github.com/SonarSource/{repo}"
git_url=f"https://{token}:x-oauth-basic@github.com/SonarSource/{repo}"
if not os.path.exists(repo):
return Repo.clone_from(git_url, repo)
else: