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

Method GetRequiredSecretNames

pkg/workflow/claude_engine.go:63–69  ·  view source on GitHub ↗

GetRequiredSecretNames returns the list of secrets required by the Claude engine. When Anthropic WIF (github-oidc + provider=anthropic) is configured, no static API key is needed and only common MCP secrets are returned.

(workflowData *WorkflowData)

Source from the content-addressed store, hash-verified

61// When Anthropic WIF (github-oidc + provider=anthropic) is configured, no static API key
62// is needed and only common MCP secrets are returned.
63func (e *ClaudeEngine) GetRequiredSecretNames(workflowData *WorkflowData) []string {
64 provider := e.ResolveLLMProvider(workflowData)
65 if provider == LLMProviderAnthropic && isAnthropicWIF(workflowData) {
66 return collectCommonMCPSecrets(workflowData)
67 }
68 return append(llmProviderSecretNames(provider), collectCommonMCPSecrets(workflowData)...)
69}
70
71// GetSupportedEnvVarKeys returns the engine.env variable names that the Claude engine
72// supports as defined in the AWF specification.

Callers 2

GetExecutionStepsMethod · 0.95

Calls 4

ResolveLLMProviderMethod · 0.95
isAnthropicWIFFunction · 0.85
collectCommonMCPSecretsFunction · 0.85
llmProviderSecretNamesFunction · 0.85

Tested by 1