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)
| 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. |
| 81 | func (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). |