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

Method GetSecretValidationStep

pkg/workflow/claude_engine.go:81–93  ·  view source on GitHub ↗

GetSecretValidationStep returns the secret validation step for the Claude engine. Returns an empty step if custom command is specified or if Anthropic WIF is configured.

(workflowData *WorkflowData)

Source from the content-addressed store, hash-verified

79// GetSecretValidationStep returns the secret validation step for the Claude engine.
80// Returns an empty step if custom command is specified or if Anthropic WIF is configured.
81func (e *ClaudeEngine) GetSecretValidationStep(workflowData *WorkflowData) GitHubActionStep {
82 provider := e.ResolveLLMProvider(workflowData)
83 if provider == LLMProviderAnthropic && isAnthropicWIF(workflowData) {
84 return GitHubActionStep{}
85 }
86 providerSecrets := llmProviderSecretNames(provider)
87 return BuildDefaultSecretValidationStep(
88 workflowData,
89 providerSecrets,
90 "Claude Code",
91 llmProviderDocsURL(provider),
92 )
93}
94
95// isAnthropicWIF returns true when the workflow is configured to use Anthropic
96// Workload Identity Federation (github-oidc auth type with provider=anthropic).

Calls 5

ResolveLLMProviderMethod · 0.95
isAnthropicWIFFunction · 0.85
llmProviderSecretNamesFunction · 0.85
llmProviderDocsURLFunction · 0.85