Wire GitHub App auth through workflows

This commit is contained in:
lezi-fun committed 2026-05-17 17:28:33 +08:00
1 parent 9a0a0cdf45
commit 8505a5b4fc
5 files changed
+61 -4

No files matched your search

+6
View File
@@ -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
});