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

Function parseProviderAuthFailure

actions/setup/js/copilot_harness.cjs:374–383  ·  view source on GitHub ↗

* Extract provider auth failure details from Copilot output when available. * @param {string} output * @returns {{ providerUrl: string, statusCode: string } | null}

(output)

Source from the content-addressed store, hash-verified

372 * @returns {{ providerUrl: string, statusCode: string } | null}
373 */
374function parseProviderAuthFailure(output) {
375 const match = output.match(/Authentication failed with provider at (\S+) \(HTTP (\d+)\)\.?/i);
376 if (!match) {
377 return null;
378 }
379 return {
380 providerUrl: match[1],
381 statusCode: match[2],
382 };
383}
384
385/**
386 * Determine whether a provider URL likely points at the gh-aw API proxy sidecar.

Calls

no outgoing calls

Tested by

no test coverage detected