Skip to main content

GitHub Configuration

IconPaid feature

The GitHub Configuration for GitSync introduces a more flexible way to connect your ToolJet instance to a Git repository. Compared to traditional SSH-based setups, it works over HTTPS, helping you avoid SSH port blocks, and lets you choose branches directly from the UI.

Role Required: Admin

1. Create a New Repository​

Create a new repository on your GitHub. The repository can be public or private. You can also use an existing repository. Make sure that the repository is empty.

2. Create the GitHub App​

Setup a GitHub App and make sure it is created by the same owner as the Git repository. If you have multiple ToolJet instances, use this same GitHub App across all instances.

GitSync

Enter your App details on the Register new GitHub App page and make sure to update the following fields:

  • Uncheck the Expire user authorization tokens and Active checkbox under Identifying and authorizing users and Webhook sections respectively.
  • 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. Here, 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.

GitSync

3. Install the GitHub App​

To install your GitHub App, follow these steps:

  • Click on Install App on the GitHub App Settings page.
GitSync
  • 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.
https://github.com/settings/installations/:installation_id

4. Configure GitHub in GitSync​

Navigate to the Workspace settings page and click on the Configure git tab. Then, enter the required configuration values after selecting GitHub as your repository provider.

GitSync

The table below describes each configuration values:

Repository​

SettingDescription
Repo URLThe URL of the repository you created to use with ToolJet. (e.g https://github.com/your-org/repo-name.git)
Branch nameBranch name of your repo. By default, it uses the main branch.

Self-hosted GitHub (Optional)​

SettingDescription
GitHub enterprise URLThe domain used to access your self-hosted GitHub instance. If you use GitHub Cloud, you can leave this blank.
GitHub enterprise API URLThe 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​

SettingDescription
GitHub app IDThe GitHub App ID.
GitHub app installation IDThe GitHub installation ID.
GitHub app private keyPrivate 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.