Skip to content

[Feature]: GHES Support #63

Open
Open

Description

@adambarbato

Problem statement

Hello! I'd love to use Pullfrog at my company, but we run an on-prem GitHub Enterprise Server rather than via GitHub.com.

Proposed solution

Do you have any plans to support on-prem installations? Or would you accept a PR to add support?

Use case

Supporting different base URLs is a necessity for GHES support

Alternatives considered

No response

Additional context

No response

Activity

  1. added
    enhancement
    on Jul 6, 2026
  2. pullfrog commented on Jul 6, 2026

    @pullfrog
    Contributor

    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.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:

    1. 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.
    2. 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.
    3. 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:

    1. 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... || "...".
    2. 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.
    3. 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.
    4. Replace hardcoded git clone/remote hosts (https://github.com/…git): mcp/git.ts:156, mcp/xrepo.ts:124, mcp/checkout.ts:556 & :590, utils/setup.ts:131 & :326.
    5. Replace user-facing links (settings/secrets, footer, status-check details_url): utils/apiKeys.ts, utils/modelAccess.ts, commands/init.ts, utils/buildPullfrogFooter.ts, utils/statusChecks.ts.
    6. 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)

    1. Does Pullfrog intend to support GHES at the product/backend level? If not, the in-repo work has no path to shipping.
    2. 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?
    3. 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.

    Pullfrog  | Implement plan ➔ | View workflow run | via Pullfrog | Using Claude Opus (free via Pullfrog for OSS) | 𝕏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions