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 e04d09c2a61 Ensure gh CLI auth in Slack notification workflows (#64045)
e04d09c2a61 is described below

commit e04d09c2a61013d114859d84e3a6b34cc7251a4f
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sat Mar 21 22:46:23 2026 +0100

    Ensure gh CLI auth in Slack notification workflows (#64045)
---
 .github/workflows/ci-amd-arm.yml      | 5 ++++-
 .github/workflows/ci-notification.yml | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/ci-amd-arm.yml b/.github/workflows/ci-amd-arm.yml
index e06000f772c..25b9ac4e64c 100644
--- a/.github/workflows/ci-amd-arm.yml
+++ b/.github/workflows/ci-amd-arm.yml
@@ -966,7 +966,10 @@ jobs:
       - name: "Determine notification action"
         id: notification
         shell: bash
-        run: python3 scripts/ci/slack_notification_state.py
+        run: |
+          command -v gh >/dev/null 2>&1 || { echo "::error::gh CLI is not 
installed"; exit 1; }
+          gh auth status || gh auth login --with-token <<< "${GITHUB_TOKEN}"
+          python3 scripts/ci/slack_notification_state.py
         env:
           ARTIFACT_NAME: "slack-state-tests-${{ github.ref_name }}"
           CURRENT_FAILURES: "${{ steps.get-failures.outputs.failed-jobs }}"
diff --git a/.github/workflows/ci-notification.yml 
b/.github/workflows/ci-notification.yml
index eb91c6dbde9..bfb1b32e4f8 100644
--- a/.github/workflows/ci-notification.yml
+++ b/.github/workflows/ci-notification.yml
@@ -58,7 +58,10 @@ jobs:
       - name: "Determine notification action"
         id: notification
         shell: bash
-        run: python3 scripts/ci/slack_notification_state.py
+        run: |
+          command -v gh >/dev/null 2>&1 || { echo "::error::gh CLI is not 
installed"; exit 1; }
+          gh auth status || gh auth login --with-token <<< "${GITHUB_TOKEN}"
+          python3 scripts/ci/slack_notification_state.py
         env:
           ARTIFACT_NAME: "slack-state-ci-${{ matrix.branch }}-${{ 
matrix.workflow-id }}"
           CURRENT_FAILURES: "${{ 
steps.find-workflow-run-status.outputs.failed-jobs }}"

Reply via email to