Fix public repository access in GitDagBundle#61343
Merged
amoghrajesh merged 4 commits intoapache:mainfrom Feb 4, 2026
Merged
Conversation
eladkal
approved these changes
Feb 2, 2026
Lee-W
reviewed
Feb 2, 2026
jedcunningham
approved these changes
Feb 3, 2026
Alok-kumar-priyadarshi
pushed a commit
to Alok-kumar-priyadarshi/airflow
that referenced
this pull request
Feb 5, 2026
jhgoebbert
pushed a commit
to jhgoebbert/airflow_Owen-CH-Leung
that referenced
this pull request
Feb 8, 2026
81 tasks
Ratasa143
pushed a commit
to Ratasa143/airflow
that referenced
this pull request
Feb 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Was generative AI tooling used to co-author this PR?
Problem
#59084 broke public repository support in GitDagBundle. When we tried to configure public repositories without authentication, the bundle initialization would fail with and error like this:
This was affecting all users using public repos with dag bundles.
The root cause was that the linked PR changed error handling to reraise all GitHook creation exceptions to provide clearer error messages. However, this broke the valid use case where users configure a public repo with explicit
repo_urlwhich lead to Githook creation failing error being reraised due to which the entire bundle would be killed, making dag bundles unusable. In other words, no dags would be seen on the Airflow UI.Fix
The fix is to make the git connection optional when
repo_urlis explicitly provided:repo_urlis NOT provided: Connection is required (to get the repo URL) and exception if any, is raised.repo_urlIS provided: Connection is optional and exception is caught, bundle continues without authenticationThis is a middle ground which allows public repositories to work without any connection configuration, while still maintaining clear error messages that the linked PR fixed earlier.
Testing
Configure the git bundle:
Earlier this would be seen:
After the fix, this is what we see:
{pr_number}.significant.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.