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

Method GetRequiredSecretNames

pkg/workflow/opencode_engine.go:48–51  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

46// (or ${{ github.token }} when permissions.copilot-requests is set to write).
47// Additional provider API keys can be added via engine.env overrides.
48func (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

Callers 1

Calls 2

PrintMethod · 0.80

Tested by 1