MINOR: Looker fix bitbucket protocol (#15604)

This commit is contained in:
Mayur Singal 2024-03-19 14:36:24 +05:30 committed by GitHub
parent 7036a7bb25
commit ef61bdc3a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,7 +58,7 @@ def _clone_repo(
if isinstance(credential, GitHubCredentials):
url = f"https://x-oauth-basic:{credential.token.__root__.get_secret_value()}@github.com/{repo_name}.git"
elif isinstance(credential, BitBucketCredentials):
url = f"https://x-token-auth::{credential.token.__root__.get_secret_value()}@bitbucket.org/{repo_name}.git"
url = f"https://x-token-auth:{credential.token.__root__.get_secret_value()}@bitbucket.org/{repo_name}.git"
allow_unsafe_protocols = True
assert url is not None