You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: remove dead functions — 1 function removed (#30843)
Remove validatePiEngineRequirements which is only reachable from
CompileToYAML, itself unreachable from any production entry point.
Also remove its exclusive test file pi_validation_test.go and the
dead call site in compiler_string_api.go.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
returnfmt.Errorf("the Pi engine requires gh-proxy and CLI proxy to be enabled.\n\nAdd the following to your workflow frontmatter:\n\n tools:\n github:\n mode: gh-proxy\n cli-proxy: true\n\nSee: %s", constants.DocsEnginesURL)
389
-
}
390
-
391
-
if!ghProxyEnabled {
392
-
returnfmt.Errorf("the Pi engine requires gh-proxy to be enabled.\n\nAdd the following to your workflow frontmatter:\n\n tools:\n github:\n mode: gh-proxy\n\nSee: %s", constants.DocsEnginesURL)
393
-
}
394
-
395
-
if!cliProxyEnabled {
396
-
returnfmt.Errorf("the Pi engine requires CLI proxy to be enabled.\n\nAdd the following to your workflow frontmatter:\n\n tools:\n cli-proxy: true\n\nSee: %s", constants.DocsEnginesURL)
397
-
}
398
-
399
-
engineValidationLog.Print("Pi engine requirements satisfied: gh-proxy and cli-proxy are enabled")
400
-
returnnil
401
-
}
402
-
403
368
// EngineHasValidateSecretStep checks if the engine provides a validate-secret step.
404
369
// This is used to determine whether the secret_verification_result job output should be added.
0 commit comments