Describe the bug
A Bad credentials error occurs when running on GitHub Enterprise Server because the Octokit client is initialized without specifying a baseUrl. By default, Octokit targets https://api.github.com, which is not valid for GHE environments.
The baseUrl is specified in other locations, but it is missing in the following place:
|
const octokit = new Octokit({ |
Related Issue:
#107
To Reproduce
- Run the GitHub Action on a GitHub Enterprise Server instance
- Have Claude use update_claude_comment
Expected behavior
Octokit should make authenticated requests to the GitHub Enterprise Server's API endpoint when GITHUB_API_URL is provided.
Screenshots
N/A
Workflow yml file
N/A (This issue is related to runtime Octokit initialization, not the workflow file itself)
API Provider
[ ] Anthropic First-Party API (default)
[ ] AWS Bedrock
[ ] GCP Vertex
Additional context
N/A