GetSecretValidationStep returns the secret validation step for the Pi engine. The validated secret depends on the resolved provider backend.
(workflowData *WorkflowData)
| 192 | // GetSecretValidationStep returns the secret validation step for the Pi engine. |
| 193 | // The validated secret depends on the resolved provider backend. |
| 194 | func (e *PiEngine) GetSecretValidationStep(workflowData *WorkflowData) GitHubActionStep { |
| 195 | backend := resolvePiBackend(workflowData) |
| 196 | profile := getUniversalLLMBackendProfile(backend, hasCopilotRequestsWritePermission(workflowData)) |
| 197 | if len(profile.coreSecretNames) == 0 { |
| 198 | return GitHubActionStep{} |
| 199 | } |
| 200 | return BuildDefaultSecretValidationStep( |
| 201 | workflowData, |
| 202 | profile.coreSecretNames, |
| 203 | "Pi", |
| 204 | "https://github.github.com/gh-aw/reference/engines/#pi", |
| 205 | ) |
| 206 | } |
| 207 | |
| 208 | // GetInstallationSteps returns the GitHub Actions steps needed to install the Pi CLI. |
| 209 | // If engine.extensions is configured, additional `pi install <extension>` steps are emitted |
nothing calls this directly
no test coverage detected