in src/gh.ts [37:48]
export function createOctoKitClient(opts?: OctokitClientOptions) {
if (!process.env.GITHUB_TOKEN) {
throw new Error(
'GITHUB_TOKEN is not set, unable to resolve the latest version of kubelogin'
);
}
return new Octokit({
...DEFAULT_OCTOKIT_CLIENT_OPTIONS,
...(opts ?? {}),
});
}