MCPcopy
hub / github.com/coder/mux / resolveGhToken

Function resolveGhToken

src/node/runtime/credentialForwarding.ts:28–30  ·  view source on GitHub ↗
(env?: Record<string, string>)

Source from the content-addressed store, hash-verified

26}
27
28export function resolveGhToken(env?: Record<string, string>): string | null {
29 return env?.GH_TOKEN ?? process.env.GH_TOKEN ?? null;
30}
31
32export function getHostGitconfigPath(): string {
33 return path.join(os.homedir(), ".gitconfig");

Callers 4

setupCredentialsMethod · 0.90
buildCredentialArgsFunction · 0.90
setupCredentialsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected