MCPcopy Index your code
hub / github.com/api3dao/airnode / authenticate

Function authenticate

docker/scripts/github.ts:110–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108};
109
110export const authenticate = () => {
111 const githubToken = process.env.GITHUB_TOKEN;
112 if (!githubToken) {
113 throw new Error('Missing GitHub token');
114 }
115
116 runCommand(`git remote set-url origin https://x-access-token:${githubToken}@github.com/${OWNER}/${REPOSITORY}`);
117};

Callers

nothing calls this directly

Calls 1

runCommandFunction · 0.90

Tested by

no test coverage detected