--- id: github-config title: GitHub Configuration sidebar_label: GitHub Configuration ---
Enter your App details on the **Register new GitHub App** page and make sure to uncheck the **Expire user authorization tokens** and **Active** checkbox under **Identifying and authorizing users** and **Webhook** sections respectively.
:::note
Add the following Repository permissions:
- Contents: Read & Write
- Pull requests: Read & Write
:::
After creating the GitHub App, you will be directed to the **GitHub App Settings** page.
:::note
Make sure to copy the **App ID**.
:::
Next, generate the **Private key** (`.pem `key), download it, and store it securely. This information will be essential later when configuring GitSync.
### 3. Install the GitHub App
To install your GitHub App, follow these steps:
- Click on Install App on the **GitHub App Settings** page.
- Click the **Install** button next to your organization.
- Select repositories option and select the repositories you want to connect to ToolJet.
- You’ll be redirected to the installation page. The number at the end of the URL is the **installation ID**. Save this for later.
The table below describes each configuration values:
#### Repository
| **Setting** | **Description** |
|-------------|----------------|
| **Repo URL** | The URL of the repository you created to use with ToolJet. (e.g `https://github.com/your-org/repo-name.git`) |
| **Branch name** | Branch name of your repo. By default, it uses the main branch. |
#### Self-hosted GitHub (Optional)
| **Setting** | **Description** |
|-------------|-----------------|
| **GitHub enterprise URL** | The domain used to access your self-hosted GitHub instance. If you use GitHub Cloud, you can leave this blank. |
| **GitHub enterprise API URL** | The API endpoint for your self-hosted GitHub instance. If you use GitHub Cloud, you can leave this blank. (e.g. `https://[hostname]/api/v3/`) |
#### App Access
| **Setting** | **Description** |
|-------------|------------------|
| **GitHub app ID** | The [GitHub App ID](https://docs.github.com/en/developers/apps/identifying-and-authorizing-users-for-github-apps#authenticating-with-a-github-app). |
| **GitHub app installation ID** | The [GitHub installation ID](https://docs.github.com/en/developers/apps/managing-github-apps/installing-github-apps#installing-a-github-app). |
| **GitHub app private key** | Private key you downloaded after App creation. |
Once you've entered the necessary configurations, click **Save Changes**. Your ToolJet instance will now be connected to your GitHub repository.
:::note
You can use the same credentials to configure a specific repository across multiple instances or workspaces.
:::