Skip to content

Comments

Add Support for GitHub App Installation Authentication in GithubHook#54812

Merged
Lee-W merged 9 commits intoapache:mainfrom
jeff3071:feat/github_auth
Nov 22, 2025
Merged

Add Support for GitHub App Installation Authentication in GithubHook#54812
Lee-W merged 9 commits intoapache:mainfrom
jeff3071:feat/github_auth

Conversation

@jeff3071
Copy link
Contributor

closes: #39457

Summary

This PR add support for GitHub App Installation Authentication in GithubHook.

If access_token is not provided, read key_path, app_id, installation_id, and optional token_permissions from extra field.

Other Change

  • Use airflow.sdk.timezone to replace airflow.utils.timezone.

Related Document

Github app document
Example app installation authentication


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@jeff3071 jeff3071 marked this pull request as ready for review August 26, 2025 14:40
@eladkal eladkal requested review from Lee-W and pankajkoti September 15, 2025 15:16
Copy link
Member

@Lee-W Lee-W left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey sorry for late review. left a few comments. but I think we're close to merge

@eladkal eladkal changed the title Feat/GitHub auth Add Support for GitHub App Installation Authentication in GithubHook Nov 4, 2025
@Lee-W Lee-W self-requested a review November 19, 2025 12:31
@Lee-W
Copy link
Member

Lee-W commented Nov 19, 2025

still need some fix on CI failure. will take a look tomorrow

@Lee-W Lee-W requested a review from jason810496 November 20, 2025 01:07
Copy link
Member

@jason810496 jason810496 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks for the PR!

Copy link
Member

@jason810496 jason810496 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update! Please feel free to resolve the addressed comments.

Sorry I should raise the nit in previous review:
How about adding unit test for get_conn method to check the new branch logic?
Thanks!

@jeff3071
Copy link
Contributor Author

Thanks for the update! Please feel free to resolve the addressed comments.

Sorry I should raise the nit in previous review: How about adding unit test for get_conn method to check the new branch logic? Thanks!

Thanks for addressing this!
I add some unit test to check get_conn method.

Copy link
Member

@jason810496 jason810496 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@Lee-W Lee-W merged commit 9200ae2 into apache:main Nov 22, 2025
79 checks passed
Copilot AI pushed a commit to jason810496/airflow that referenced this pull request Dec 5, 2025
itayweb pushed a commit to itayweb/airflow that referenced this pull request Dec 6, 2025
dym-ok added a commit to dym-ok/airflow that referenced this pull request Jan 16, 2026
This PR adds support for GitHub App private keys stored directly in
connections (e.g. in AWS Secrets Manager).

`private_key` field is an alternative to `key_path`.

This is a followup for apache#54812.
dym-ok added a commit to dym-ok/airflow that referenced this pull request Feb 2, 2026
This PR adds support for GitHub App private keys stored directly in
connections (e.g. in AWS Secrets Manager).

`private_key` field is an alternative to `key_path`.

This is a followup for apache#54812.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Support for GitHub App Installation Authentication in GithubHook

3 participants