engineEnvHasKey reports whether the given env var key is present in the engine.env map. Returns false if workflowData or EngineConfig is nil, or if the key is not in the map.
(workflowData *WorkflowData, key string)
| 95 | // engineEnvHasKey reports whether the given env var key is present in the engine.env map. |
| 96 | // Returns false if workflowData or EngineConfig is nil, or if the key is not in the map. |
| 97 | func engineEnvHasKey(workflowData *WorkflowData, key string) bool { |
| 98 | if workflowData == nil || workflowData.EngineConfig == nil { |
| 99 | return false |
| 100 | } |
| 101 | _, ok := workflowData.EngineConfig.Env[key] |
| 102 | return ok |
| 103 | } |
| 104 | |
| 105 | // applyEngineCwdEnv sets the GH_AW_ENGINE_CWD environment variable in the given env map |
| 106 | // when engine.cwd is configured. This variable is consumed by JS harness processes (via |
no outgoing calls
no test coverage detected