From 7a20f01953d90180985489697ab1a451f53ec87f Mon Sep 17 00:00:00 2001 From: Ihor Solodrai Date: Wed, 11 Mar 2026 14:04:01 -0700 Subject: [PATCH] get-linux-source: use an env var for the ACTION_PATH MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move ${{ github.action_path }} from inline run: usage to env: section as ACTION_PATH. The runner's ContainerStepHost translates env var paths for container jobs (host path → container path), but does not translate paths embedded in run: script content. This fixes composite actions when called from a workflow with a container: directive. Also move inline export vars (KERNEL_ORIGIN, KERNEL_BRANCH, REPO_PATH) to env: for consistency with other actions in this repo. [1] https://github.com/actions/runner/blob/main/src/Runner.Worker/Handlers/StepHost.cs#L108 Assisted-by: Claude:claude-opus-4-6 Signed-off-by: Ihor Solodrai --- get-linux-source/action.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/get-linux-source/action.yml b/get-linux-source/action.yml index 97521d35..826fd808 100644 --- a/get-linux-source/action.yml +++ b/get-linux-source/action.yml @@ -17,8 +17,10 @@ runs: steps: - name: Get bpf-next source shell: bash + env: + ACTION_PATH: ${{ github.action_path }} + KERNEL_ORIGIN: ${{ inputs.repo }} + KERNEL_BRANCH: ${{ inputs.rev }} + REPO_PATH: ${{ inputs.dest }} run: | - export KERNEL_ORIGIN='${{ inputs.repo }}' - export KERNEL_BRANCH='${{ inputs.rev }}' - export REPO_PATH='${{ inputs.dest }}' - ${{ github.action_path }}/checkout_latest_kernel.sh + ${ACTION_PATH}/checkout_latest_kernel.sh