[FEATURE]: GitHub Action support for GitHub Enterprise Server (GHES) #9472

Closed
opened 2026-02-16 18:12:31 -05:00 by yindo · 2 comments
Owner

Originally created by @balcsida on GitHub (Feb 16, 2026).

Originally assigned to: @thdxr on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

The GitHub Action (opencode github run and github/index.ts) hardcodes github.com URLs throughout — Octokit baseUrl, git credential config keys, noreply emails, fork remote URLs, image attachment regexes, and the token revocation endpoint. This prevents it from working on GHES instances.

GitHub Actions runners on GHES already set GITHUB_SERVER_URL, GITHUB_API_URL, and GITHUB_GRAPHQL_URL environment variables. Using these as the source of truth (with github.com defaults) would make the integration host-agnostic with zero configuration for GHES users.

The opencode github install command also only recognizes github.com remotes via parseGitHubRemote. Adding a host-agnostic parseGitRemote and detecting GHES would let the installer generate a workflow with use_github_token: true and write permissions pre-configured (since the opencode GitHub App only exists on github.com).

Originally created by @balcsida on GitHub (Feb 16, 2026). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request The GitHub Action (`opencode github run` and `github/index.ts`) hardcodes `github.com` URLs throughout — Octokit `baseUrl`, git credential config keys, noreply emails, fork remote URLs, image attachment regexes, and the token revocation endpoint. This prevents it from working on GHES instances. GitHub Actions runners on GHES already set `GITHUB_SERVER_URL`, `GITHUB_API_URL`, and `GITHUB_GRAPHQL_URL` environment variables. Using these as the source of truth (with `github.com` defaults) would make the integration host-agnostic with zero configuration for GHES users. The `opencode github install` command also only recognizes `github.com` remotes via `parseGitHubRemote`. Adding a host-agnostic `parseGitRemote` and detecting GHES would let the installer generate a workflow with `use_github_token: true` and write permissions pre-configured (since the opencode GitHub App only exists on github.com).
yindo closed this issue 2026-02-16 18:12:31 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 16, 2026):

This issue might be a duplicate of or closely related to existing issues. Please check:

  • #12830: PR agent for Github enterprise server - requesting GHES support for the GitHub Action integration
  • #3936: Github Enterprise authorization - issues with GitHub Enterprise authentication for Copilot provider

These issues may have relevant discussions or workarounds that could be helpful for your use case.

@github-actions[bot] commented on GitHub (Feb 16, 2026): This issue might be a duplicate of or closely related to existing issues. Please check: - #12830: PR agent for Github enterprise server - requesting GHES support for the GitHub Action integration - #3936: Github Enterprise authorization - issues with GitHub Enterprise authentication for Copilot provider These issues may have relevant discussions or workarounds that could be helpful for your use case.
Author
Owner

@balcsida commented on GitHub (Feb 16, 2026):

Why didn't I found these...
Let me close this then.

anyway, good bot

@balcsida commented on GitHub (Feb 16, 2026): Why didn't I found these... Let me close this then. anyway, good bot
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9472