From d786b4eb55dfbec534b669ee9fa4c7b1ccebf985 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 20 May 2026 16:27:29 +0100 Subject: [PATCH] ci: preserve node path across setup action steps (cherry picked from commit a6172a7d0ec4954fd6116a7dc12d2ef4463b50de) --- .github/actions/setup-node-env/action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-node-env/action.yml b/.github/actions/setup-node-env/action.yml index aece802f3fe..a75eba6c656 100644 --- a/.github/actions/setup-node-env/action.yml +++ b/.github/actions/setup-node-env/action.yml @@ -59,14 +59,15 @@ runs: if command -v bun &>/dev/null; then bun -v; fi - name: Capture node path - if: inputs.install-deps == 'true' shell: bash run: | node_bin="$(dirname "$(node -p 'process.execPath')")" if command -v cygpath >/dev/null 2>&1; then node_bin="$(cygpath -u "$node_bin")" fi + # zizmor: ignore[github-env] node_bin comes from trusted actions/setup-node output in this composite action. echo "NODE_BIN=$node_bin" >> "$GITHUB_ENV" + echo "$node_bin" >> "$GITHUB_PATH" - name: Install dependencies if: inputs.install-deps == 'true'