Wire GitHub App auth through workflows
This commit is contained in:
1 parent
9a0a0cdf45
commit
8505a5b4fc
5 files changed
+61
-4
No files matched your search
@@ -45,6 +45,12 @@ export async function createGitHubClient(params?: {
|
||||
}
|
||||
}
|
||||
|
||||
if (!config.githubToken) {
|
||||
throw new Error(
|
||||
"GitHub authentication is not configured. Provide GITHUB_TOKEN, or set GITHUB_APP_ID and GITHUB_APP_PRIVATE_KEY."
|
||||
);
|
||||
}
|
||||
|
||||
return new Octokit({
|
||||
auth: config.githubToken
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user