getEngineEnvOverrides returns the engine.env map from workflowData, or nil if not set. This is used to pass user-provided env overrides to steps such as secret validation, so that overridden token expressions are used instead of the default "${{ secrets.KEY }}".
(workflowData *WorkflowData)
| 74 | // This is used to pass user-provided env overrides to steps such as secret validation, |
| 75 | // so that overridden token expressions are used instead of the default "${{ secrets.KEY }}". |
| 76 | func getEngineEnvOverrides(workflowData *WorkflowData) map[string]string { |
| 77 | if workflowData == nil || workflowData.EngineConfig == nil { |
| 78 | return nil |
| 79 | } |
| 80 | return workflowData.EngineConfig.Env |
| 81 | } |
| 82 | |
| 83 | // ResolveEngineID returns the workflow engine ID, preferring engine.id over the legacy AI field. |
| 84 | // It returns an empty string when no engine ID is available. |
no outgoing calls
no test coverage detected