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)
| 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. |
| 109 | func 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. |
| 117 | func applyOptionalEngineToolTimeouts(env map[string]string, workflowData *WorkflowData) { |
no outgoing calls
no test coverage detected