potiuk commented on code in PR #51256:
URL: https://github.com/apache/airflow/pull/51256#discussion_r2135536404
##########
providers/git/src/airflow/providers/git/hooks/git.py:
##########
@@ -89,7 +90,7 @@ def _process_git_auth_url(self):
if not isinstance(self.repo_url, str):
return
if self.auth_token and self.repo_url.startswith("https://"):
- self.repo_url = self.repo_url.replace("https://",
f"https://{self.auth_token}@")
+ self.repo_url = self.repo_url.replace("https://",
f"https://{self.user_name}:{self.auth_token}@")
Review Comment:
This should be optional. In GitHub it's ok for example to authenticate with
just token.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]