Skip to main content
Organization Admin permissions are required to access and modify a model’s git settings.
After a git repository is connected to a model, you can configure the integration’s behavior by navigating to Model > Git Settings in the model IDE.

Test git connection

Clicking the Test git connection button will test the connection’s Deploy key setup. Note: This doesn’t currently test the repository’s webhook setup. To disconnect the repository from the model, click the Unlink git button.

Pull request settings

Base branch

Defines the target branch for Omni pull requests. Omni defaults this setting to main, but it may be different for your repository. If you’re unsure which branch is the default for your repository, check your repository’s settings page:

Pull request required

Enabling this setting will require all changes to the model to be made through a pull request. Otherwise, changes can be directly promoted to the shared model. If you’re familiar with git, this is equivalent to committing changes directly to the repository’s base (default) branch.
For additional control, you can define rules in the git repository that require pull requests to be reviewed and approved before they’re merged. Refer to the documentation for your git provider to learn more:

Require for system syncs

Some Omni actions, such as schema refreshes, API events, and model syncs, will automatically commit changes to the repository’s base branch, making them visible in the shared model. Enabling the Pull request required > Require for system syncs setting will require that these actions are merged via a pull request. To use this setting, the following settings must also be enabled:
Because this setting requires branch-based schema refresh, the connection is limited to a single shared model. See Requiring branches for schema refreshes for details and workarounds.

Git follower mode

Enables follower mode for the model.

Model path

The path to the model files in the connected repository. Defaults to omni/<model-name>. To use a custom path from the repository root, start the path with /, for example /bi/models/sales. If follower mode is enabled, values for the leader and follower(s) must match.

Always create branches

When the Create Omni branches for all pull requests setting is enabled, Omni ensures a corresponding branch exists whenever a pull request in the connected repository is opened, updated, or merged.

Git service provider

In most cases, Omni automatically detects your git provider. Use the Git service provider setting to manually override the detected provider when Omni can’t detect it correctly, such as when you’re using a self-hosted git instance. This setting affects how Omni generates pull request URLs. Supported providers:
  • GitHub
  • GitLab
  • Azure DevOps
  • Bitbucket Cloud
  • Bitbucket Data Center

Custom web URL

When your git repository’s SSH URL goes through a tunnel or VPC, Omni may not be able to automatically generate valid web links to view pull requests or browse repository files. The Custom web URL setting allows you to specify an alternate HTTPS URL that Omni will use instead. When this field is set, Omni will use the custom URL to generate:
  • Pull request URLs
  • Repository file browsing links
If left blank, Omni will automatically derive the web URL from the repository’s SSH URL. For example, if your repository’s SSH URL is git@github.com:your-org/your-repo.git but it goes through a private tunnel, you can set the custom web URL to https://github.com/your-org/your-repo to ensure repository links work correctly.

Authentication

Access token

If your repository is configured with HTTPS token authentication, you can update the access token using the Change Token button. This is useful when:
  • Your access token has expired
  • You need to rotate tokens for security purposes
  • You want to use a different token with updated permissions
To change the token:
  1. Click the Change Token button.
  2. Enter the new access token.
  3. Click Save to update the connection.
The connection will be re-validated with the new token.

Deploy key

The Deploy key allows Omni to read from and commit to the connected git repository when using SSH authentication. Refer to the git integration setup guides to learn how to add the key to your repository.

Pull request webhook

The Pull request webhook settings allow Omni to be notified when pull request-related actions are taken in the repository. This is required to keep your git and Omni branches in sync. Refer to the git integration setup guides to learn how to add the webhooks to your repository.

Webhook secret

When using SSH authentication, Omni generates a webhook secret that is used to verify webhook requests from your git provider. This secret ensures that only authorized webhook events from your repository are processed by Omni.

Rotating webhook secrets

Webhook secret rotation is only available when using SSH authentication. HTTPS token authentication does not use webhook secrets.
Rotate your webhook secret if it has been compromised, leaked, or accessed without authorization. Common scenarios that require rotation:
  • Security incident: Your webhook secret was exposed in logs, code, or leaked in a security breach.
  • Suspected unauthorized access: You suspect someone has accessed your webhook secret.
  • Routine security practice: Regular credential rotation as part of your security policy.
  • Provider notification: Your git provider notified you that webhook secrets may have been compromised.
You can generate a new secret without unlinking and re-linking your git repository. To rotate the webhook secret:
1

Open Git settings

Navigate to Model > Git settings in the model IDE.
2

Rotate the secret

In the Pull request webhook section, click the Rotate secret button.
3

Confirm the rotation

A confirmation dialog will appear warning that the current secret will stop working immediately. Click Confirm to proceed.
4

Copy the new secret

Copy the new webhook secret.
5

Update your git provider

Update the webhook configuration in your git provider with the new secret:
When you rotate the webhook secret, the old secret is immediately invalidated. You must update the webhook configuration in your git provider with the new secret to continue receiving webhook events. Until the webhook is updated, Omni will not receive notifications about pull request activity in the repository.