From ce0e2cc0719f1ae112ce8cada91ee7f457552f68 Mon Sep 17 00:00:00 2001 From: Kobi Hikri Date: Tue, 14 Jul 2026 17:55:19 +0300 Subject: [PATCH] ci(H-Coverage): pass github.head_ref via env var instead of inline run interpolation Follows GitHub's documented guidance to avoid interpolating context values directly into run: shells; the branch name is now set as a HEAD_REF env var and referenced as ${HEAD_REF}. --- .github/workflows/H-Coverage.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/H-Coverage.yml b/.github/workflows/H-Coverage.yml index 93c546fa420d62..8491598d048e8f 100644 --- a/.github/workflows/H-Coverage.yml +++ b/.github/workflows/H-Coverage.yml @@ -12,6 +12,7 @@ concurrency: cancel-in-progress: true env: + HEAD_REF: ${{ github.head_ref }} PR_ID: ${{ github.event.pull_request.number }} COMMIT_ID: ${{ github.event.pull_request.head.sha }} TASK: paddle-CI-${{ github.event.pull_request.number }}-coverage @@ -543,7 +544,7 @@ jobs: -e PY_VERSION \ -e work_dir \ -e GITHUB_SHA="${{ github.event.pull_request.head.sha }}" \ - -e GITHUB_HEAD_REF="${{ github.head_ref }}" \ + -e GITHUB_HEAD_REF="${HEAD_REF}" \ -e GITHUB_BASE_SHA="${{ github.event.pull_request.base.sha }}" \ -e GITHUB_REPO_NAME="${{ github.repository }}" \ -e GITHUB_EVENT_PULL_REQUEST_NUMBER="${{ github.event.pull_request.number }}" \ @@ -657,7 +658,7 @@ jobs: -e PY_VERSION \ -e work_dir \ -e GITHUB_SHA="${{ github.event.pull_request.head.sha }}" \ - -e GITHUB_HEAD_REF="${{ github.head_ref }}" \ + -e GITHUB_HEAD_REF="${HEAD_REF}" \ -e GITHUB_BASE_SHA="${{ github.event.pull_request.base.sha }}" \ -e GITHUB_REPO_NAME="${{ github.repository }}" \ -e GITHUB_EVENT_NAME="${{ github.event_name }}" \