GetRequiredSecretNames returns the list of secrets required by the OpenCode engine. By default, OpenCode routes through the Copilot API using COPILOT_GITHUB_TOKEN (or ${{ github.token }} when permissions.copilot-requests is set to write). Additional provider API keys can be added via engine.env over
(workflowData *WorkflowData)
| 46 | // (or ${{ github.token }} when permissions.copilot-requests is set to write). |
| 47 | // Additional provider API keys can be added via engine.env overrides. |
| 48 | func (e *OpenCodeEngine) GetRequiredSecretNames(workflowData *WorkflowData) []string { |
| 49 | openCodeLog.Print("Collecting required secrets for OpenCode engine") |
| 50 | return e.GetUniversalRequiredSecretNames(workflowData) |
| 51 | } |
| 52 | |
| 53 | // GetSupportedEnvVarKeys returns the engine.env variable names that the OpenCode engine |
| 54 | // supports as defined in the AWF specification. OpenCode is a multi-provider engine so all |