Repository navigation
feat: set RUNNER_ENVIRONMENT and runner.environment like GitHub - #1
Merged
Merged
Conversation
3 tasks
Upstream act sets RUNNER_OS/ARCH/TEMP/TOOL_CACHE but no RUNNER_ENVIRONMENT,
so every action whose default keys on it (setup-uv's enable-cache: auto
caches only on GitHub-hosted runners) behaves as if on an unknown runner,
and repositories carried per-step overrides for local runs.
- runner.environment: github-hosted for a job container (act's runner
images emulate GitHub-hosted runners), self-hosted for -self-hosted host
mode.
- RUNNER_ENVIRONMENT: set for a job container unless the workflow or --env
sets it; host mode copies it from the runner context like the other
RUNNER_* variables.
Tests: testdata/runner-environment/{hosted,self-hosted} in TestRunEvent and
TestRunEventHostEnvironment (RED without the change), plus unit tests.
Implements criterion 6 of zackees/ci.yml ACT-002 (forge-ci/ci.yml#213, nektos#217).
Co-Authored-By: Claude <[email protected]>
zackees
force-pushed
the
feat/runner-environment
branch
from
October 2, 2026 21:44
b0323b1 to
f56629b
Compare
This was referenced Oct 2, 2026
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.
Upstream act sets
RUNNER_OS/RUNNER_ARCH/RUNNER_TEMP/RUNNER_TOOL_CACHEbut noRUNNER_ENVIRONMENT, so actions whose defaults key on it (e.g.astral-sh/setup-uv'senable-cache: auto, which caches only on GitHub-hosted runners) behave as if on an unknown runner, and repositories carried per-step overrides for local runs.runner.environment:github-hostedfor a job container (act's runner images emulate GitHub-hosted runners),self-hostedfor-self-hostedhost mode.RUNNER_ENVIRONMENT: set for a job container unless the workflow or--envsets it; host mode copies it from the runner context like the otherRUNNER_*variables.Tests (RED -> GREEN)
testdata/runner-environment/hostedinTestRunEvent(default + explicit-override jobs) andtestdata/runner-environment/self-hostedinTestRunEventHostEnvironment: both fail without the change (Job 'default' failed) and pass with it (run locally ingolang:1.25with the Docker socket).TestSetRunnerEnvironment,TestRunnerContextEnvironmentunit tests.Implements criterion 6 of ACT-002 (forge-ci/ci.yml#213, policy merged in forge-ci/ci.yml#217). Coordinated with zackees/clud (local CI migration to bosn → act2) and zackees/bosn (act2 pin).