anomalyco / anomalyco/opencode

GitHub Action ignores GHES API endpoint variables

Open
#39,789 2 comments 0 reactions 1 assignee View on GitHub

@rekram1-node is already working on this.

Since Jul 31, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

The GitHub Action creates its REST and GraphQL clients with GitHub.com defaults even when GitHub Actions provides GITHUB_API_URL and GITHUB_GRAPHQL_URL on GHES. REST requests can therefore target GitHub.com, while deriving GraphQL from the REST endpoint would also use the wrong GHES path.

Plugins

None

OpenCode version

Current dev branch

Steps to reproduce
  1. Run the GitHub Action on GHES with GITHUB_API_URL ending in /api/v3 and GITHUB_GRAPHQL_URL ending in /api/graphql.
  2. Trigger a code path that makes REST and GraphQL requests.
  3. Observe that the clients do not use those endpoints.
Screenshot and/or share link

Not applicable

Operating System

GitHub Actions runner

Terminal

Not applicable

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.