> ## Documentation Index
> Fetch the complete documentation index at: https://docs.base44.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connecting GitHub Enterprise Cloud

> Connect GitHub Enterprise Cloud with data residency (ghe.com) to your Base44 workspace, so your team can sync apps with repositories on your own GitHub address.

If your company uses GitHub Enterprise Cloud with data residency, your repositories live on your own address, such as `acme.ghe.com`. Connect that address to your workspace once, and you and your workspace members can sync apps and [Base Code](https://docs.base44.com/base-code/getting-started.md) projects with repositories there, the same way you do with github.com.

> [!WARNING]
>
> **Before you start:**
>
> * You need the [Enterprise plan](https://base44.com/pricing) to connect GitHub Enterprise Cloud.
> * You need to be a workspace owner or admin, and an owner of an organization in your GitHub enterprise.

***

## Preparing to connect

Before you connect, check where your code is kept and whether your enterprise limits which addresses can reach it, so the connection works the first time.

> [!WARNING]
>
> **Before you connect:**
>
> * **Where your code is kept:** Base44 keeps a copy of your repository's code to build and preview your app. That copy is stored and run in the United States, outside your GitHub data residency region.
> * **IP allow lists and Base Code:** Static outbound IPs cover apps but not [Base Code](https://docs.base44.com/base-code/getting-started.md) projects, so Base Code projects can't sync with an enterprise that uses an IP allow list.

If your enterprise uses an IP allow list, turn on [static outbound IPs](https://docs.base44.com/Enterprise/static-outbound-ips) before you connect, then add their addresses to your allow list.

***

## Setting up GitHub Enterprise

The setup adds a Base44 GitHub App to one of your organizations and installs it on the organizations whose repositories you want to use. You stay in control of the app on GitHub and can delete it at any time.

Letting GitHub create the app for you is the quickest way. If you'd rather create the app yourself, you create it on GitHub during the setup and then enter its details in Base44.

**To set up GitHub Enterprise Cloud:**

1. Click your workspace name at the bottom left of your account.
2. Click **Settings**.
3. Click **Git**.
4. Click **Add** next to **Enterprise setup**.

   ![The Git page in workspace settings with Add outlined next to Enterprise setup](https://mintcdn.com/base44/UPFSXttsOX0St0O_/images/enterprise-github-enterprise-setup-add.png?fit=max\&auto=format\&n=UPFSXttsOX0St0O_\&q=85\&s=d8bda688e2ac458847276eed07d794b3)

   Adding an Enterprise setup in your workspace's Git settings
5. Click **Get started**.
6. Enter the part of your GitHub address before `.ghe.com`, such as `acme`.
7. Click **Continue**.
8. Do one of the following:

> [accordion] Let GitHub create the app
>
> 1. Select **Create it on GitHub**.
> 2. Enter the name of the organization that will own the app, as it appears in its GitHub address. You need to be an owner of that organization.
> 3. Click **Create app on GitHub**.
> 4. Click **Create GitHub App** in the GitHub window that opens.
> 5. Click **Install on GitHub**, then choose the organizations whose repositories you want to use.

> [accordion] Enter the app details yourself
>
> > [!WARNING]
> >
> > The client secret and private key give access to your GitHub App. Keep them private, and paste them only into Base44.
>
> 1. In another browser tab, create a GitHub App in an organization you own on your GitHub address. Leave its webhook active with any URL, because Base44 sets the address.
>
> 2. Select **Enter the details by hand**.
>
> 3. Paste your GitHub App's ID, client ID, client secret, and private key into the matching fields.
>
> 4. Click **Verify and continue**.
>
>    > [!NOTE]
>    >
>    > If the app is missing permissions or events that Base44 needs, Base44 lists them. Add them in the app's settings on GitHub, then click **Verify and continue** again.
>
> 5. Click **Install on GitHub**, then choose the organizations whose repositories you want to use.

> [!NOTE]
>
> When you're done on GitHub, come back to Base44. A message confirms that GitHub Enterprise is connected, and your setup shows under **Enterprise setup** with the number of organizations it's installed on.

***

## Working with repositories

After the setup, you and your workspace members can [sync apps with repositories](https://docs.base44.com/developers/app-code/local-development/github.md) on your GitHub address the same way as on github.com. Your enterprise's organizations show in **Connections** on the same **Git** settings page, with their ghe.com address under each name. When you connect an app or a Base Code project, they show in the list of organizations and repositories you choose from.

There are 2 differences on ghe.com:

* **Repositories you can only read:** Ask a repository admin for write access before you connect one. On github.com, Base44 can make your own copy of it instead, but GitHub doesn't allow that on ghe.com.
* **The Base44 mobile app:** Linking or importing a ghe.com repository opens the Base44 website to finish.

> [!NOTE]
>
> **Who signs in to your GitHub address:**
>
> * **Base Code:** You sign in once with your own ghe.com account.
> * **Apps:** You don't sign in, because apps use your workspace's connection. If your workspace chose **Per user connection** under **Choose how your team writes to Git**, you connect your own ghe.com account instead.

***

## Managing your setup

Keep your setup up to date as your enterprise changes, for example when you add an organization or rotate your app's keys. Your setup lists the app's name, who set it up, and how many organizations it's installed on.

> [!WARNING]
>
> When you disconnect GitHub Enterprise, every app that syncs through its organizations stops syncing. The Base44 app stays on your GitHub address. To remove it, delete it on GitHub as an owner of its organization.

**To manage your GitHub Enterprise Cloud setup:**

1. Click your workspace name at the bottom left of your account.
2. Click **Settings**.
3. Click **Git**.
4. Click the **More actions** icon  next to your enterprise's address under **Enterprise setup**.
5. Click one of the following:
   * **Install on more organizations:** Opens GitHub so you can add another organization.
   * **Replace credentials:** Paste a new private key or client secret after you rotate one. A field you leave empty keeps its saved value.
   * **Disconnect GitHub Enterprise:** Removes the setup and disconnects its organizations.

***

## FAQs

Select a question below to learn more about using GitHub Enterprise Cloud in your workspace.

> [accordion] What happens if my workspace leaves the Enterprise plan?
>
> Apps and projects that are already connected keep syncing, but you can't change or disconnect your setup, add organizations, or connect new repositories until you're back on the Enterprise plan.

> [accordion] Can I use github.com and GitHub Enterprise Cloud in the same workspace?
>
> Yes. Each app can sync with a repository on either github.com or your ghe.com address.

> [accordion] Can I connect more than one ghe.com address?
>
> Yes. Each address gets its own setup. To connect another one, follow the [steps for setting up GitHub Enterprise](#setting-up-github-enterprise) again with the new address.

> [accordion] Can I use the same GitHub App in more than one Base44 workspace?
>
> No. A GitHub App can be set up in only one Base44 workspace. To connect the same ghe.com address to another workspace, create a new GitHub App for it.


## Related topics

- [Connecting GitHub to your app](https://docs.base44.com/Integrations/github-connector.md)
- [GitHub Integration](https://docs.base44.com/developers/app-code/local-development/github.md)
- [Base44 developer tools](https://docs.base44.com/documentation/building-your-app/developer-tools.md)
- [Setting up SSO for your enterprise workspace](https://docs.base44.com/Enterprise/Set-up-SSO.md)
- [Connectors catalog](https://docs.base44.com/Integrations/connectors-catalog.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.