suhail-zemoso commented on issue #54175: URL: https://github.com/apache/airflow/issues/54175#issuecomment-3206167445
<img width="1903" height="961" alt="Image" src="https://github.com/user-attachments/assets/d10f51d2-7bcf-4e1a-9570-8a7bb5858e8a" /> **Can you confirm whether this is the expected issue that I am encountering and if I am following the correct steps to reproduce it? If these are not the correct steps to reproduce the issue, please let me know. ** @adrian-edbert Environment - - Airflow version: 3.0.3 - OS/User setup: - worker user owns the main Airflow installation and DAG bundles - run_as_user user used for task execution with run_as_user parameter - Repository used for DAG bundles: https://github.com/suhail-zemoso/airflow-dags - DAG used: git_bundle_test.py from above repo Steps to Reproduce - 1. Create a Git connection in Airflow UI - Connection ID: my_git_conn - Type: Git - Repository URL: https://github.com/suhail-zemoso/airflow-dags.git 2. Configure DAG bundle in airflow.cfg `dag_bundle_config_list = [ { "name": "git-bundle-test", "classpath": "airflow.providers.git.bundles.git.GitDagBundle", "kwargs": { "subdir": "dags", "tracking_ref": "main", "git_conn_id": "my_git_conn", "refresh_interval": 0 } } ] ` 3. Ensure dag_bundles folder exists `mkdir -p /home/worker/airflow/dag_bundles chown -R worker:worker /home/worker/airflow/dag_bundles ` 4. Create a DAG that uses run_as_user `from airflow import DAG from airflow.operators.bash import BashOperator from datetime import datetime with DAG( dag_id="git_bundle_test", start_date=datetime(2025, 8, 20), schedule_interval=None, ) as dag: task = BashOperator( task_id="whoami_task", bash_command="whoami", run_as_user="run_as_user" ) ` 5. Trigger the DAG from the UI -- 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]
