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

Function isRetryableProxyAuthenticationFailure

actions/setup/js/copilot_harness.cjs:477–483  ·  view source on GitHub ↗

* Determine whether an authentication_failed error came from the gh-aw API proxy after * partial execution, making a one-time fresh-run retry worthwhile. * @param {string} output * @param {boolean} hasOutput * @returns {boolean}

(output, hasOutput)

Source from the content-addressed store, hash-verified

475 * @returns {boolean}
476 */
477function isRetryableProxyAuthenticationFailure(output, hasOutput) {
478 if (!hasOutput || !isAuthenticationFailedError(output)) {
479 return false;
480 }
481 const authFailure = parseProviderAuthFailure(output);
482 return Boolean(authFailure && isLikelyAWFAPIProxyURL(authFailure.providerUrl));
483}
484
485/**
486 * Detect known Copilot error patterns for workflow outputs.

Callers 3

shouldRetryFunction · 0.85
mainFunction · 0.85

Calls 3

parseProviderAuthFailureFunction · 0.85
isLikelyAWFAPIProxyURLFunction · 0.85

Tested by 1

shouldRetryFunction · 0.68