fix: add fallback for RUNNER_TEMP to prevent undefined file path#88
Open
MaxwellCalkin wants to merge 1 commit intoanthropics:mainfrom
Open
fix: add fallback for RUNNER_TEMP to prevent undefined file path#88MaxwellCalkin wants to merge 1 commit intoanthropics:mainfrom
MaxwellCalkin wants to merge 1 commit intoanthropics:mainfrom
Conversation
When RUNNER_TEMP is not set (e.g., local testing or non-standard CI environments), the execution file path resolves to the literal string "undefined/claude-execution-output.json", causing a confusing ENOENT error. Falls back to /tmp when RUNNER_TEMP is unset. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When
RUNNER_TEMPis not set (e.g., during local testing withtest-local.shor in non-standard CI environments), the execution file path resolves to the literal string"undefined/claude-execution-output.json", producing a confusingENOENTerror when the action tries to write the execution log.Change: Falls back to
/tmpwhenRUNNER_TEMPis unset, matching the behavior documented inCLAUDE.md("Outputs execution logs as JSON to/tmp/claude-execution-output.json").Before:
RUNNER_TEMPunset → path is"undefined/claude-execution-output.json"→ ENOENT errorAfter:
RUNNER_TEMPunset → path is"/tmp/claude-execution-output.json"→ works correctlyTest plan
process.env.RUNNER_TEMP || "/tmp"produces/tmpwhen unsetAI Disclosure
This PR was authored by Claude Opus 4.6 (Anthropic), an AI agent operated by Maxwell Calkin (@MaxwellCalkin).