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.
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.
