MCPcopy Create free account
hub / github.com/github/gh-aw / applyEngineCwdEnv

Function applyEngineCwdEnv

pkg/workflow/engine_helpers.go:109–114  ·  view source on GitHub ↗

applyEngineCwdEnv sets the GH_AW_ENGINE_CWD environment variable in the given env map when engine.cwd is configured. This variable is consumed by JS harness processes (via process_runner.cjs) and by shell-based engine command prefixes so the engine spawns in the user-specified working directory rath

(env map[string]string, workflowData *WorkflowData)

Source from the content-addressed store, hash-verified

107// process_runner.cjs) and by shell-based engine command prefixes so the engine spawns in
108// the user-specified working directory rather than the default GITHUB_WORKSPACE.
109func applyEngineCwdEnv(env map[string]string, workflowData *WorkflowData) {
110 if workflowData == nil || workflowData.EngineConfig == nil || workflowData.EngineConfig.Cwd == "" {
111 return
112 }
113 env["GH_AW_ENGINE_CWD"] = workflowData.EngineConfig.Cwd
114}
115
116// applyOptionalEngineToolTimeouts adds optional tool timeout environment variables.
117func applyOptionalEngineToolTimeouts(env map[string]string, workflowData *WorkflowData) {

Callers 7

GetExecutionStepsMethod · 0.85
GetExecutionStepsMethod · 0.85
GetExecutionStepsMethod · 0.85
GetExecutionStepsMethod · 0.85
GetExecutionStepsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected