airflow.providers.git.hooks.git

Attributes

log

Classes

GitHook

Hook for git repositories.

Module Contents

airflow.providers.git.hooks.git.log[source]
class airflow.providers.git.hooks.git.GitHook(git_conn_id='git_default', repo_url=None, *args, **kwargs)[source]

Bases: airflow.providers.common.compat.sdk.BaseHook

Hook for git repositories.

Parameters:
  • git_conn_id (str) – Connection ID for SSH connection to the repository

  • repo_url (str | None) – Explicit Git repository URL to override the connection’s host.

Connection extra fields:

  • key_file — path to an SSH private key file.

  • private_key — inline SSH private key string (mutually exclusive with key_file).

  • private_key_passphrase — passphrase for the private key (key_file or inline).

  • strict_host_key_checking"yes" or "no" (default "no").

  • known_hosts_file — path to a custom SSH known-hosts file.

  • ssh_config_file — path to a custom SSH config file.

  • host_proxy_cmd — SSH ProxyCommand string (e.g. for bastion/jump hosts).

  • ssh_port — non-default SSH port.

conn_name_attr = 'git_conn_id'[source]
default_conn_name = 'git_default'[source]
conn_type = 'git'[source]
hook_name = 'GIT'[source]
classmethod get_ui_field_behaviour()[source]
repo_url[source]
user_name[source]
auth_token[source]
private_key[source]
key_file[source]
private_key_passphrase[source]
strict_host_key_checking[source]
known_hosts_file[source]
ssh_config_file[source]
host_proxy_cmd[source]
ssh_port: int | None[source]
env: dict[str, str][source]
set_git_env(key=None)[source]
configure_hook_env()[source]

Was this entry helpful?