From 677de5648a2bcb0adfac9aa7b787c1ccd70ecdb1 Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Wed, 1 Oct 2025 15:51:47 -0700 Subject: [PATCH] fix: relative paths need to be resolved against github.action_path (#1) --- action.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/action.yml b/action.yml index 99b4e0f..b703bcf 100644 --- a/action.yml +++ b/action.yml @@ -100,7 +100,7 @@ runs: GITHUB_TOKEN: ${{ github.token }} shell: bash run: | - node --enable-source-maps dist/main.js check-write-access --allow-bots "$ALLOW_BOTS" + node "${{ github.action_path }}/dist/main.js" check-write-access --allow-bots "$ALLOW_BOTS" - name: Install Codex CLI shell: bash @@ -136,7 +136,7 @@ runs: - name: Read server info id: read_server_info shell: bash - run: node dist/main.js read-server-info "${{ steps.start_proxy.outputs.server_info_file }}" + run: node "${{ github.action_path }}/dist/main.js" read-server-info "${{ steps.start_proxy.outputs.server_info_file }}" - name: Drop sudo privilege, if appropriate if: ${{ inputs.safety_strategy == 'drop_sudo' }} @@ -144,10 +144,10 @@ runs: run: | case "${RUNNER_OS}" in Linux) - node --enable-source-maps dist/main.js drop-sudo --user runner --group sudo + node "${{ github.action_path }}/dist/main.js" drop-sudo --user runner --group sudo ;; macOS) - node --enable-source-maps dist/main.js drop-sudo --user runner --group admin + node "${{ github.action_path }}/dist/main.js" drop-sudo --user runner --group admin ;; *) echo "Unsupported OS for drop_sudo: ${RUNNER_OS}" >&2 @@ -178,7 +178,7 @@ runs: CODEX_USER: ${{ inputs.codex_user }} shell: bash run: | - node --enable-source-maps dist/main.js run-codex-exec \ + node "${{ github.action_path }}/dist/main.js" run-codex-exec \ --prompt "${CODEX_PROMPT}" \ --prompt-file "${CODEX_PROMPT_FILE}" \ --codex-home "$CODEX_HOME" \