To connect your GitLab to Y42, you will need to follow these steps:
- Create a new GitLab repository
- Create an access token for the project
- Authorize Y42 with the repository
We recommend creating a new GitLab repository every time you set up a new space with Y42. This prevents errors in the set-up process.
If you have an existing dbt project, you can use it directly. However, it will need to meet the standard dbt project structure in order to be correctly read by Y42. Learn more → (opens in a new tab)
Once your GitLab project is created, you need to generate an access token. Project Access Tokens are the most straightforward way to allow access to a repository. They are similar to passwords, except you can limit access to resources, select a limited role, and provide an expiry date.
On the left sidebar in GitLab, select Search or go to and find your project.
Select Add new token
Enter a name. The token name is visible to any user with permissions to view the project.
Enter an expiry date for the token
Select the Owner role
For the scopes, we require the following ones to be selected for your space to work correctly:
Select Create project access token
In the Y42 app, click on “Authorize repositories in GitLab”.
You will be prompted with an input field where you should enter the access token generated in the previous step.
You will then be prompted to confirm that you want to link the repository to your space. If multiple GitLab projects are linked to the access token, then you will need to choose one from the list.
Afterwards, you will receive a confirmation that the space has been successfully linked.
Your GitLab repository is ready to be used with the Y42 space.