fix(ci): use $RUNNER_TEMP instead of hardcoded /tmp in claude-fix #44
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/claude-fix-no-tmp-PMC-120"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Replace hardcoded
/tmppaths in.forgejo/workflows/claude-fix.ymlwith the runner-provided$RUNNER_TEMPdirectory.Three files moved off
/tmp: the failure-context markdown, the Claude result JSON, and the commit-message file.Why
$RUNNER_TEMPis guaranteed writable, scoped to the job, and cleaned up automatically. Hardcoded/tmpcan collide between concurrent runs and breaks on runners where/tmpis noexec or read-only.Note
The Run Claude Code prompt uses a single-quoted heredoc (no shell expansion), so the context-file path is injected via a
__CONTEXT_FILE__placeholder swapped in from the build-context step'scontext_fileoutput.Closes PMC-120.