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

Function engineEnvHasKey

pkg/workflow/engine_helpers.go:97–103  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
97func 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

Calls

no outgoing calls

Tested by

no test coverage detected