diff --git a/pkg/runner/run_context.go b/pkg/runner/run_context.go index 034aaf2..fdf996c 100644 --- a/pkg/runner/run_context.go +++ b/pkg/runner/run_context.go @@ -78,6 +78,7 @@ func (rc *RunContext) startJobContainer() common.Executor { } envList = append(envList, fmt.Sprintf("%s=%s", "RUNNER_TOOL_CACHE", "/opt/hostedtoolcache")) + envList = append(envList, fmt.Sprintf("%s=%s", "RUNNER_OS", "Linux")) binds := []string{ fmt.Sprintf("%s:%s", "/var/run/docker.sock", "/var/run/docker.sock"), diff --git a/pkg/runner/step_context.go b/pkg/runner/step_context.go index bfa9b0d..70039b5 100644 --- a/pkg/runner/step_context.go +++ b/pkg/runner/step_context.go @@ -164,6 +164,8 @@ func (sc *StepContext) newStepContainer(ctx context.Context, image string, cmd [ } envList = append(envList, fmt.Sprintf("%s=%s", "RUNNER_TOOL_CACHE", "/opt/hostedtoolcache")) + envList = append(envList, fmt.Sprintf("%s=%s", "RUNNER_OS", "Linux")) + envList = append(envList, fmt.Sprintf("%s=%s", "RUNNER_TEMP", "/tmp")) binds := []string{ fmt.Sprintf("%s:%s", "/var/run/docker.sock", "/var/run/docker.sock"),