feat: replace RUNNER_TEMP with /tmp/gh-aw throughout compiler and runtime#25350
Closed
feat: replace RUNNER_TEMP with /tmp/gh-aw throughout compiler and runtime#25350
Conversation
…time files Agent-Logs-Url: https://github.com/github/gh-aw/sessions/25292e8f-0d8d-476c-8c3c-76c3c29be1f6 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
pelikhan
April 8, 2026 17:31
View session
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
Updates the compiler and all built-in workflow templates to never use
${RUNNER_TEMP}/gh-aw/as the runtime root directory. All paths now use/tmp/gh-aw/directly.Why
/tmp/gh-aw/is always available on Linux runners (GitHub-hosted and self-hosted)RUNNER_TEMPenvironment variable which can vary or be unexpectedly set to/tmpon some self-hosted runners${RUNNER_TEMP}/gh-aw/(setup files) and/tmp/gh-aw/(runtime files)Changes
Core constants
pkg/constants/constants.go: UpdatedGhAwRootDirandGhAwRootDirShellto/tmp/gh-awCompiler (Go files)
All compiler files updated to emit
/tmp/gh-aw/paths instead of${RUNNER_TEMP}/gh-aw/or${{ runner.temp }}/gh-aw/:pkg/workflow/compiler_yaml.go,compiler_yaml_ai_execution.go,compiler_yaml_main_job.go,compiler_yaml_step_generation.gopkg/workflow/mcp_config_builtin.go,mcp_renderer_builtin.go,mcp_renderer.go,mcp_setup_generator.go,mcp_scripts_generator.gopkg/workflow/cache.go,docker.go,runtime_step_generator.go,repo_memory.gopkg/workflow/awf_helpers.go,copilot_engine_execution.go,notify_comment.go,pr.gopkg/workflow/git_configuration_steps.go,safe_jobs.go,redact_secrets.go,publish_artifacts.gopkg/workflow/unified_prompt_step.go,step_order_validation.goSetup action
actions/setup/setup.sh: HardcodedGH_AW_ROOT="/tmp/gh-aw", removed all RUNNER_TEMP validation (collision check, writability check, etc.)actions/setup/clean.sh: Updated default destinationactions/setup/action.yml: Updated input descriptionactions/setup/sh/*.sh: Updated all shell scriptsactions/setup/js/*.cjs: Updated all JavaScript runtime files and test filesGenerated files
.github/workflows/*.lock.ymlfiles recompiled with new pathspkg/workflow/testdata/**/*.goldenwasm golden files updatedTesting
go test -tags '!integration' ./pkg/workflow/✓)make build✓)make lint✓)make fmt✓)make recompile✓)