Skip to content

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

@balcsida

Description

@balcsida

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions