MCPcopy
hub / github.com/Dokploy/dokploy / getGithubToken

Function getGithubToken

packages/server/src/utils/providers/github.ts:31–41  ·  view source on GitHub ↗
(
	octokit: ReturnType<typeof authGithub>,
)

Source from the content-addressed store, hash-verified

29};
30
31export const getGithubToken = async (
32 octokit: ReturnType<typeof authGithub>,
33) => {
34 const installation = (await octokit.auth({
35 type: "installation",
36 })) as {
37 token: string;
38 };
39
40 return installation.token;
41};
42
43/**
44 * Check if a GitHub user has write/admin permissions on a repository

Callers 1

cloneGithubRepositoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected