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

Method GetSecretValidationStep

pkg/workflow/pi_engine.go:194–206  ·  view source on GitHub ↗

GetSecretValidationStep returns the secret validation step for the Pi engine. The validated secret depends on the resolved provider backend.

(workflowData *WorkflowData)

Source from the content-addressed store, hash-verified

192// GetSecretValidationStep returns the secret validation step for the Pi engine.
193// The validated secret depends on the resolved provider backend.
194func (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

Callers

nothing calls this directly

Tested by

no test coverage detected