We want one place for our AI skills: a Git repository that is hosted in the EU. From that repository we want to deploy the skills to ChatGPT and Microsoft Copilot. We also want ChatGPT to work directly on the repository, so that a colleague can change a skill with a prompt instead of a Markdown editor. This article shows how we connected ChatGPT to GitHub Enterprise with EU data residency, and what we learned.
The problem: skills in a sovereign Git repository
Connecting ChatGPT to a repository on github.com is easy. ChatGPT supports it out of the box. We do not use github.com for this work. We use GitHub Enterprise Cloud with EU data residency (a host that ends in ghe.com). The reason is digital sovereignty: the code and the skills stay in the EU.
That choice has a consequence. The standard GitHub connection in ChatGPT does not work with a ghe.com host. You must register your own GitHub App and connect it to a ChatGPT app template. That takes more configuration, and you need administrators on two platforms.
Our goal has three parts:
- Store every skill once, in the EU Git repository, under version control.
- Build, test and deploy the skills with pipelines (CI/CD and package management) to the ChatGPT workspace marketplace and to Copilot.
- Let ChatGPT read and change the repository, so that colleagues can improve skills with a prompt and give feedback on them.
Before you start: request access
In organisations where sovereignty is important, the engineer is often not the administrator of Git or ChatGPT. Request access first. You need two people, or one person with both roles:
- A ChatGPT workspace admin or owner. This person creates the app from the template, publishes it and decides who can use it.
- A GitHub Enterprise organisation owner, or an app manager. This person creates the GitHub App, installs it on the repositories and approves permission changes.
Send them a short request with these items:
- The name of the GitHub organisation and the repositories that ChatGPT may access.
- The actions that you need: read only, or also issues, pull requests and file changes.
- The people or roles in ChatGPT that may use the app.
- A link to this article, so that they can follow the steps.
Do not ask for more permissions than you need. You can add permissions later, but an organisation owner must then approve them again.
Connect ChatGPT to GitHub Enterprise: step by step
You connect a GitHub App on your GitHub Enterprise host to an app in your ChatGPT workspace. OpenAI supplies an app template for this (OpenAI guide). Keep ChatGPT and GitHub Enterprise open in two tabs.
- Start in ChatGPT. Open Workspace settings, then Apps, then the directory. Select the template GitHub Enterprise. Enter only the host name, for example
yourcompany.ghe.com, withouthttps://. Copy the callback URL that ChatGPT shows. - Create a GitHub App. Do not create an OAuth App. In GitHub Enterprise, open the organisation settings, then Developer settings, then GitHub Apps, then New GitHub App. Paste the callback URL exactly. Enable Request user authorization during installation. Select the smallest installation scope.
- Set the minimum permissions. Start with read access to Contents, Issues, Pull requests and Metadata. Add write access only when you need it.
- Get the credentials. Copy the client ID. Generate a client secret and a private key (
.pem). Keep the key safe. If the key leaks, generate a new key and delete the old key. - Complete the app in ChatGPT. Paste the client ID, the client secret and the full PEM text. Create the draft app. Copy the webhook URL and the webhook secret.
- Set the webhook in GitHub Enterprise. Paste the webhook URL and the secret into the GitHub App. Keep SSL verification on. Select only the events that match the permissions.
- Publish and install. Publish the app in ChatGPT and select who can use it. Install the GitHub App in the organisation and limit access to the repositories you need.
- Test with a small action. First ask a read question, for example the title of an issue. Then create one test issue in a repository where that is safe.
Pitfalls that we found
| What you see | Cause | Solution |
|---|---|---|
| ChatGPT says that no GitHub tools are available. | The app was mentioned in the prompt but not selected, or the user did not authorise it. | Start the chat with Try in chat on the app page, or select the app with @. |
| ChatGPT offers write actions, but they fail. | The GitHub App has read permissions only. ChatGPT still shows all actions. | Add the permissions in the GitHub App and let an organisation owner approve them. |
| New permissions do not work immediately. | New permissions require approval for the existing installation. | An organisation owner approves the update in the organisation settings, under GitHub Apps. |
| With write access, ChatGPT can also merge a pull request into main. | The main branch has no protection. | Add a ruleset on main: a pull request and green CI checks are required. |
| A Jira project admin cannot see the tickets. | The permission scheme gives Browse to member roles only, not to administrators. | Add the administrators to the member role too. |
What the connection does, and what it does not do
The connection gives ChatGPT access to the repository. It does not install or update skills in the workspace. A merge into main does not change the skills that colleagues use in ChatGPT.
- It does: read and search code, issues and pull requests; create issues, branches and pull requests; register feedback with the feedback skill. Every action uses the GitHub identity of the user.
- It does not: start workflows, create tags or releases, or update the skills in the ChatGPT workspace.
From Git to ChatGPT: the release pipeline
To deploy the skills, the repository has its own pipeline. It builds each skill once, tests it, and releases it as a fixed bundle. Then it promotes the exact release to an environment.
- Release. A workflow runs the quality gate, builds the packages for ChatGPT, Copilot Studio and Claude, and publishes one immutable bundle with a manifest and hashes.
- Promote. A second workflow copies the marketplace from exactly that release to a deployment branch, first for acceptance and later for production.
- Sync. ChatGPT can import a plugin marketplace from a GitHub repository and then sync it every day. A workspace admin does the first import once.
For acceptance, the release and the promotion run automatically every working day when the main branch has changed. Promotion to production stays a manual step.
Note: the GitHub Enterprise app template and the marketplace import are recent ChatGPT features; OpenAI updated the guides for both in autumn 2026. The guide for the marketplace import currently mentions repositories on github.com. Before you plan the import, check whether it supports your ghe.com host. We will update this article when we have tested the import.
Feedback from users back to the source
The chain also works in the other direction. The skill AMIS Skill Feedback & Issue Management analyses a report about a skill: what happened, what the user expected, and where the cause probably is. It registers the report only after explicit consent from the user.
- Through GitHub: the skill creates an issue in the repository. This is for users who have access to Git.
- Through Jira: with the Atlassian app in ChatGPT, the skill creates a ticket in the skill management project. Any colleague with a Jira account can give feedback, even without access to Git.
The skill owner fixes the skill in a pull request. The next release brings the fix back to ChatGPT. When a colleague reports a problem in ChatGPT, the skill owner receives a change record with enough detail to reproduce the problem, along with a proposed regression test.

