You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2026/03/11 21:19:45 UTC

(airflow-site) branch fix/checkout-v6-push-credentials created (now c414adec22)

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

kaxilnaik pushed a change to branch fix/checkout-v6-push-credentials
in repository https://gitbox.apache.org/repos/asf/airflow-site.git


      at c414adec22 Fix git push auth failure after actions/checkout v6 upgrade

This branch includes the following new commits:

     new c414adec22 Fix git push auth failure after actions/checkout v6 upgrade

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(airflow-site) 01/01: Fix git push auth failure after actions/checkout v6 upgrade

Posted by ka...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kaxilnaik pushed a commit to branch fix/checkout-v6-push-credentials
in repository https://gitbox.apache.org/repos/asf/airflow-site.git

commit c414adec2205616f88197f8b0f532beae2106ade
Author: Kaxil Naik <ka...@gmail.com>
AuthorDate: Wed Mar 11 21:19:26 2026 +0000

    Fix git push auth failure after actions/checkout v6 upgrade
    
    actions/checkout v6 changed persist-credentials to store tokens in a
    separate file under $RUNNER_TEMP, referenced via git includeIf gitdir
    conditions. Because this workflow symlinks the repo to /mnt/airflow-site,
    the physical path no longer matches the includeIf condition and git
    cannot find credentials when pushing to the publish branch.
    
    Set the remote URL with the token explicitly before pushing.
---
 .github/workflows/build.yml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 37da5c20dd..18085206ce 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -176,11 +176,16 @@ jobs:
       - name: 🚀 Add commit to ${{ env.PUBLISH_BRANCH }} branch and deploy it
         if: env.PROD_PUBLISH_REQUIRED != 'false' || env.STAGING_PUBLISH_REQUIRED != 'false'
         working-directory: dist
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         run: |
           set -x
           echo "Running git config"
           git config user.name "GitHub Actions"
           git config user.email "actions@users.noreply.github.com"
+          # actions/checkout@v6 stores credentials via includeIf gitdir conditions that
+          # break when the repo is symlinked to /mnt. Set the token explicitly.
+          git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git"
           echo "Running git add"
           git add .
           git diff HEAD