[GH-ISSUE #594] BUG : Fetch Github CI Context has github.com hardcoded that blocks execution on Enterprise Github Instances #192

Closed
opened 2026-03-02 04:12:44 +03:00 by kerem · 0 comments
Owner

Originally created by @tvishwanatharkin on GitHub (Feb 26, 2026).
Original GitHub issue: https://github.com/git-ai-project/git-ai/issues/594

get_github_ci_context has github.com hardcoded

We have have been using git-ai on our Enterprise Github instance which works on all aspects except the workflow that handles rewriting the attributions for PR Squash/Rebase and Merge.

Problem Statement

git-ai ci github run command fails when executed in an Enterprise Github Instance. This could probably be arising out of a hardcoding while resolving the authenticated url.

Logs

##[debug]/usr/bin/bash -e /home/runner/_work/_temp/2d195ddb-8d82-4d63-9ca0-e94ab195ffe8.sh
Failed to get GitHub CI context: Git CLI (clone --branch main https://github.ent.example.net/ABC/ai-metrics-poc.git git-ai-ci-clone) failed with exit code 128: Cloning into 'git-ai-ci-clone'...
fatal: could not read Username for 'https://github.ent.example.net/': No such device or address

Impact

AI Attributions are not rewritten when PR goes through a server side Squash/Rebase Merge blocking git-ai's adoption in Enterprise Github instances.

Originally created by @tvishwanatharkin on GitHub (Feb 26, 2026). Original GitHub issue: https://github.com/git-ai-project/git-ai/issues/594 # get_github_ci_context has github.com hardcoded We have have been using git-ai on our Enterprise Github instance which works on all aspects except the workflow that handles rewriting the attributions for PR Squash/Rebase and Merge. ## Problem Statement `git-ai ci github run` command fails when executed in an Enterprise Github Instance. This could probably be arising out of a [hardcoding](https://github.com/git-ai-project/git-ai/blob/main/src/ci/github.rs#L72) while resolving the authenticated url. ### Logs ``` ##[debug]/usr/bin/bash -e /home/runner/_work/_temp/2d195ddb-8d82-4d63-9ca0-e94ab195ffe8.sh Failed to get GitHub CI context: Git CLI (clone --branch main https://github.ent.example.net/ABC/ai-metrics-poc.git git-ai-ci-clone) failed with exit code 128: Cloning into 'git-ai-ci-clone'... fatal: could not read Username for 'https://github.ent.example.net/': No such device or address ``` ## Impact AI Attributions are not rewritten when PR goes through a server side Squash/Rebase Merge blocking git-ai's adoption in Enterprise Github instances.
kerem 2026-03-02 04:12:44 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/git-ai#192
No description provided.