You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the request. I dug through how Pullfrog talks to GitHub. The short version: the URL-configurability part is straightforward and I've scoped it below, but full GHES support has a hard dependency on Pullfrog's backend and a product decision that can't be resolved in this repo alone. I'd want a maintainer to weigh in before implementation.
The blocker: token minting doesn't happen in this repo
The action never holds GitHub App credentials. It exchanges a GitHub Actions OIDC token at pullfrog.com for a short-lived installation token:
acquireTokenViaOIDC (utils/github.ts:174) POSTs to /api/github/installation-token on the Pullfrog API (utils/apiFetch.ts → getApiUrl() → https://pullfrog.com).
That backend is what actually authenticates to GitHub and mints the token.
For GHES this raises three things that live in pullfrog/app (backend), not here:
The GitHub App is per-host. A github.com App ID/private key is meaningless on a GHES instance — the Pullfrog App would have to be created and installed on the customer's GHES server.
Network reachability. Pullfrog's cloud backend must reach the GHES API to mint/validate tokens. GHES is typically firewalled/VPN-only, so a hosted backend generally can't reach it.
OIDC trust. GHES Actions uses a different OIDC issuer than github.com; the backend must be configured to trust and validate it.
Because of this, changes in this repo are necessary but not sufficient — they won't enable GHES on their own.
What is in-repo scope (URL configurability)
GitHub Actions on GHES automatically populates GITHUB_API_URL, GITHUB_SERVER_URL, and GITHUB_GRAPHQL_URL in the runner env. Today most call sites hardcode api.github.com / github.com instead of reading those. utils/token.ts:327 and utils/runErrorRenderer.ts:101 already read the env vars, so there's precedent.
Proposed steps:
Add a central helper (e.g. utils/githubUrls.ts) exposing githubApiUrl(), githubServerUrl(), githubGraphqlUrl() that read the env with github.com fallbacks — instead of scattering process.env... || "...".
Octokit base URL — createOctokit (utils/github.ts:541) sets no baseUrl, so it defaults to api.github.com. This is the primary MCP GitHub API client; wire baseUrl from the helper. This is the single most impactful change.
Replace hardcoded API hosts:utils/github.ts:280 (githubRequest), utils/gitAuthServer.ts:48, utils/apiCommit.ts:19, utils/assets.ts:68 (the hostname === "github.com" auth gate), commands/init.ts:112.
Tests for the URL helper and the derived clone/remote URLs (mcp/git.test.ts hardcodes github.com assertions and would need parameterizing).
Open questions for maintainers (blocking)
Does Pullfrog intend to support GHES at the product/backend level? If not, the in-repo work has no path to shipping.
What's the intended auth model on GHES — a self-hosted Pullfrog backend, or a "bring-your-own App credentials" path (like the existing local-dev acquireTokenViaGitHubApp in utils/github.ts:371) that bypasses pullfrog.com entirely?
Would you accept a PR limited to step 1–6 URL configurability? It's low-risk, doesn't change github.com behavior, and is a prerequisite regardless of how the backend story lands.
I can turn the in-repo portion into a concrete implementation plan once there's a direction on the questions above. Not starting implementation yet.
Activity
pullfrog commentedon Jul 6, 2026
GHES Support — analysis & plan
Thanks for the request. I dug through how Pullfrog talks to GitHub. The short version: the URL-configurability part is straightforward and I've scoped it below, but full GHES support has a hard dependency on Pullfrog's backend and a product decision that can't be resolved in this repo alone. I'd want a maintainer to weigh in before implementation.
The blocker: token minting doesn't happen in this repo
The action never holds GitHub App credentials. It exchanges a GitHub Actions OIDC token at
pullfrog.comfor a short-lived installation token:acquireTokenViaOIDC(utils/github.ts:174) POSTs to/api/github/installation-tokenon the Pullfrog API (utils/apiFetch.ts→getApiUrl()→https://pullfrog.com).For GHES this raises three things that live in
pullfrog/app(backend), not here:Because of this, changes in this repo are necessary but not sufficient — they won't enable GHES on their own.
What is in-repo scope (URL configurability)
GitHub Actions on GHES automatically populates
GITHUB_API_URL,GITHUB_SERVER_URL, andGITHUB_GRAPHQL_URLin the runner env. Today most call sites hardcodeapi.github.com/github.cominstead of reading those.utils/token.ts:327andutils/runErrorRenderer.ts:101already read the env vars, so there's precedent.Proposed steps:
utils/githubUrls.ts) exposinggithubApiUrl(),githubServerUrl(),githubGraphqlUrl()that read the env with github.com fallbacks — instead of scatteringprocess.env... || "...".createOctokit(utils/github.ts:541) sets nobaseUrl, so it defaults to api.github.com. This is the primary MCP GitHub API client; wirebaseUrlfrom the helper. This is the single most impactful change.utils/github.ts:280(githubRequest),utils/gitAuthServer.ts:48,utils/apiCommit.ts:19,utils/assets.ts:68(thehostname === "github.com"auth gate),commands/init.ts:112.https://github.com/…git):mcp/git.ts:156,mcp/xrepo.ts:124,mcp/checkout.ts:556&:590,utils/setup.ts:131&:326.details_url):utils/apiKeys.ts,utils/modelAccess.ts,commands/init.ts,utils/buildPullfrogFooter.ts,utils/statusChecks.ts.mcp/git.test.tshardcodes github.com assertions and would need parameterizing).Open questions for maintainers (blocking)
acquireTokenViaGitHubAppinutils/github.ts:371) that bypassespullfrog.comentirely?I can turn the in-repo portion into a concrete implementation plan once there's a direction on the questions above. Not starting implementation yet.
Claude Opus(free via Pullfrog for OSS) | 𝕏