This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new cb21363b79f Pass GITHUB_TOKEN to breeze shell executed in-container 
scripts (#50769)
cb21363b79f is described below

commit cb21363b79f69bc46d3ac03fbf8fe20f61519636
Author: Jarek Potiuk <[email protected]>
AuthorDate: Mon May 19 11:21:36 2025 -0400

    Pass GITHUB_TOKEN to breeze shell executed in-container scripts (#50769)
    
    So far we did not need GITHUB_TOKEN for the in-container scripts
    but with the new rate limits introduced by GitHub we need to convert
    all our "frequent" raw calls into ahtenticated API requests so that
    our CI does not fail.
    
    For that we need to pass GITHUB_TOKEN from host to the container
    scripts - by adding GITHUB_TOKEN to the variables passed.
---
 dev/breeze/src/airflow_breeze/params/shell_params.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev/breeze/src/airflow_breeze/params/shell_params.py 
b/dev/breeze/src/airflow_breeze/params/shell_params.py
index 35a7f633f19..57cb299e1b2 100644
--- a/dev/breeze/src/airflow_breeze/params/shell_params.py
+++ b/dev/breeze/src/airflow_breeze/params/shell_params.py
@@ -584,6 +584,7 @@ class ShellParams:
         _set_var(_env, "FORCE_LOWEST_DEPENDENCIES", 
self.force_lowest_dependencies)
         _set_var(_env, "SQLALCHEMY_WARN_20", self.force_sa_warnings)
         _set_var(_env, "GITHUB_ACTIONS", self.github_actions)
+        _set_var(_env, "GITHUB_TOKEN", self.github_token)
         _set_var(_env, "HOST_GROUP_ID", self.host_group_id)
         _set_var(_env, "HOST_OS", self.host_os)
         _set_var(_env, "HOST_USER_ID", self.host_user_id)

Reply via email to