Skip to main content
This page connects a GitLab project to Datafold with an access token.

Before you begin

  • You have the admin role in your Datafold organization.
  • You can create a project access token in GitLab.
  • For self-managed GitLab, set GitLab Server URL in Settings → Org Settings before you add the integration. It defaults to https://gitlab.com.

What access Datafold needs

Datafold uses the token to read your codebase for migration projects, and to push migrated code and open merge requests. The token needs:
  • The api and write_repository scopes.
  • The Maintainer role, so Datafold can install the webhook for you. With the Developer role the integration still saves, but you add the webhook yourself. See Add the webhook manually.
Use a project access token rather than a personal access token. Project access tokens are more secure.

Create a project access token

In your GitLab project settings, create a project access token with the scopes and role above.

GitLab Access Token

Add the integration in Datafold

1

Choose GitLab

Go to Settings → Integrations → Repositories, click Add new integration, and choose GitLab.
2

Fill in the fields

3

Save the integration

Click Save.

Add the webhook manually

If the token has the Developer role, Datafold shows manual webhook instructions after you save. In your GitLab project, go to Settings → Webhooks, add the webhook URL and secret that Datafold shows, and select Push events and Merge request events.

Change the GitLab server URL

To change the GitLab host after you set up the integration, update GitLab Server URL in Settings → Org Settings.