Before you connect a workspace through the GitLab connection, install the connection on the project. See Connect gitlab.com or Connect GitLab Self-Managed.
Connect a workspace through the GitLab connection
- In Paradime, go to Settings > Git Repository.
- In Choose your provider, select GitLab.
- In Choose how Paradime connects, select GitLab connection and click Continue.
- If your company has no GitLab connection yet, install it on this page. Choose GitLab (your projects live on gitlab.com) or GitLab Self-Managed (your company runs its own GitLab instance), then follow the install steps in Connect gitlab.com or Connect GitLab Self-Managed. When the install is complete, you stay on the Git Repository page.
- In Pick the project, select the project. The list shows only the projects that a GitLab connection reaches. If you just added the project to a connection and it is not in the list, click Refresh next to the list.
- If the repository holds more than one dbt™ project, enter the folder of this workspace’s project in dbt™ project path (optional). See Set the dbt™ project path.
- Click Connect project.
In workspace setup
When you create a new workspace, the repository step has the same choice:- Choose GitLab, then GitLab connection.
- If GitLab is not connected yet, choose GitLab (your projects live on gitlab.com) or GitLab Self-Managed (your company runs its own GitLab instance), and install the connection in the same step. You can do this as the person who creates the workspace: you become its admin, so you don’t need an admin to do it for you.
- In Pick the project, select the project. If needed, enter the dbt™ project path (optional). Then click Connect project. Click Refresh next to the list if a project is missing.
Set the dbt™ project path
Leave dbt™ project path (optional) empty when the repository holds one dbt™ project. Paradime finds itsdbt_project.yml. Enter a path when the repository holds more than one dbt™ project, for example a monorepo with one project for each team. The path tells Paradime which project this workspace runs.
- Enter the folder that holds
dbt_project.yml, relative to the root of the repository, for examplejaffle_shop. You can also enter the file path,jaffle_shop/dbt_project.yml. - Paradime checks that
dbt_project.ymlis in that folder on the branch the workspace runs. If it is not, Paradime showsNo dbt_project.yml at <folder>/ in <project>.
A workspace that already has a repository can connect only that same project through the GitLab connection. To use a different project, click Change repository first. See Update connected git repository.
Switch a deploy-key workspace to HTTPS
When a GitLab connection already covers the project of a workspace that uses a deploy key, the Git Repository page shows a banner: Switch to HTTPS: the GitLab connection to<host> already covers this project.
- Go to Settings > Git Repository.
- In the banner, click Switch to HTTPS through GitLab.
What changes for the workspace
On a workspace connected through the GitLab connection, every part of Paradime uses HTTPS:Link your GitLab account
To use git in the Code IDE on a workspace connected through GitLab, each person links their own GitLab account. Their commits and pushes are then made as them.- Go to Settings > Integrations and open the Personal tab.
- On the GitLab tile, click Connect.
- Sign in to GitLab and authorize Paradime.
<your GitLab username>.
If you push from the Code IDE before you link your account, the git error has a link. The link opens a page that starts the GitLab sign-in in one click.
On GitLab Self-Managed, the GitLab tile shows only when the Paradime OAuth application is registered on your instance. See Register the OAuth application. If your company set a sign-in URL, your browser opens GitLab at that address.
DinoAI agents on GitLab
On a workspace connected through the GitLab connection, a DinoAI agent session works on GitLab like this:- The agent clones the project with a read-only token for the session. Paradime revokes the token when the session ends.
- The agent commits through the GitLab API, never with
git push. Its commits go only to its own branch,paradime/<session id>. It cannot commit tomainor to any other branch. The session’s local commits reach GitLab as one commit. - GitLab push rules, such as Reject unsigned commits, do not block the agent, because GitLab accepts commits made through its API. If your GitLab instance has web-based commit signing turned on, GitLab signs the agent’s commits.
- The commits are made as the person who started the session, if they linked their GitLab account. Otherwise, for example in scheduled and self-healing sessions, they are made as the Paradime bot. Each commit names
DinoAIas a co-author. - When the agent opens a merge request, GitLab shows the same author: the person who started the session, or the Paradime bot. The agent never sees the person’s token.
- The agent can read the project and its merge requests, open a merge request from its own branch, and comment on that merge request. It cannot approve, merge, or edit merge requests, or change project settings.
- One commit can change up to 200 files. The agent cannot commit symlinks or submodules, and Git LFS files and very large files do not fit the GitLab API.
When the connection cannot reach the project
The Git Repository page tells you when a workspace loses its GitLab connection:Connect with a deploy key
You can also connect a GitLab project with an SSH deploy key. If the project is also on a GitLab connection, Turbo CI, on-merge runs, and Lineage Diff still work with no pipeline. If it is not, they need a GitLab pipeline.Create a service account user in GitLab, for example
paradime.gitlab.maintainer@yourcompany.com, with write access to the project, and let this user own the deploy key.- In Paradime, import your repository with its SSH URL to generate a deploy key. See Importing a repository.
- In GitLab, open your project’s Settings > Repository.
- Expand Deploy keys and paste the deploy key from Paradime.
- Select Grant write permissions to this key, then save the key.
