RaphCodec commented on code in PR #64422:
URL: https://github.com/apache/airflow/pull/64422#discussion_r3741110896
##########
providers/git/src/airflow/providers/git/hooks/git.py:
##########
@@ -240,7 +346,15 @@ def _passphrase_askpass_env(self):
@contextlib.contextmanager
def configure_hook_env(self):
- if self.private_key:
+ if self.github_app_id is not None and self.github_installation_id is
not None:
+ self._ensure_github_app_token()
+ with self._github_app_askpass_env():
+ yield
+ return
+
+ # If a GitHub App PEM is present, it should not be treated as an SSH
key
+ # for configuring `GIT_SSH_COMMAND`.
+ if self.private_key and not self.github_app_private_key:
Review Comment:
self.github_app_private_key removed. auth uses self.private_key now
--
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]