Fix copilot-setup-steps: relocate cache/tmp dirs to RUNNER_WORKDIR, add HOME - #31
Closed
JoseSantosAMD with Copilot wants to merge 1 commit into
Closed
Conversation
Draft
Copilot
AI
changed the title
[WIP] Add IntelliKit feature implementation
Fix copilot-setup-steps: relocate cache/tmp dirs to RUNNER_WORKDIR, add HOME
Mar 4, 2026
Copilot stopped work on behalf of
JoseSantosAMD due to an error
March 4, 2026 13:58
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.
The
copilot-setup-steps.ymlworkflow was usinggithub.workspacefor pip/uv cache and temp directories, which caused failures on runners where the workspace may be read-only or reset between steps. TheHOMEvariable was also unset, breaking tools that rely on it.Changes
PIP_CACHE_DIR,UV_CACHE_DIR,TMPDIR,XDG_CACHE_HOME, andHOMEto point underRUNNER_WORKDIR(persistent, writable across steps); removed the step-levelUV_CACHE_DIRoverride that was redundantmkdir -pfor all cache/tmp dirs at the start of the venv step so they exist before any tool tries to write to them--cache-dirflag — passed explicitly to allpip installcalls to ensure the relocated cache is honoured regardless of env variable resolution order"$GITHUB_WORKSPACE","$GITHUB_PATH", etc.) to guard against paths with spaces--no-cache-dir→ explicit cache dir — replaced the earlier--no-cache-dirworkaround with a proper writable cache location🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.