fix: add GITHUB_API_URL to all Octokit client instantiations (#243)

Not all Octokit client instantiations were respecting GITHUB_API_URL, so
these tools would fail on enterprise.
This commit is contained in:
Allen Li
2025-07-11 10:46:23 -04:00
committed by GitHub
parent cefe963a6b
commit 0f9a2c4dc3
2 changed files with 5 additions and 1 deletions

View File

@@ -20,7 +20,7 @@ async function checkActionsReadPermission(
repo: string,
): Promise<boolean> {
try {
const client = new Octokit({ auth: token });
const client = new Octokit({ auth: token, baseUrl: GITHUB_API_URL });
// Try to list workflow runs - this requires actions:read
// We use per_page=1 to minimize the response size