Set up Column-Level Lineage Diff on GitLab. First complete the shared Lineage Diff prerequisites, then configure your GitLab pipeline.
Generate API keys
Generate a Paradime API key with the Bolt schedules admin capability. Use an Account API key (a prdm_cmp_... Bearer token), and note your workspace token and API endpoint; you will add them as CI/CD variables in a later step.
Create a Pipeline
Now you will need to create a new .gitlab-ci.yml file in your dbt™️ repository. Copy the code below.
This pipeline has two stages:
paradime_turbo_ci — Runs the Turbo CI bolt schedule and exports the BOLT_RUN_ID for the next stage.
lineage_diff_report — Uses the BOLT_RUN_ID to trigger the lineage diff report and posts the result as a comment on the Merge Request.
Create a GitLab Access Token
You will need to create GitLab Access Token with API to enable Comments to be generated when opening a Merge Request.
Create a group access token (Only available on GitLab Premium Tier or Higher)
Navigate to your GitLab project
- Go to Settings > Access Tokens in the left sidebar
- Enter a name for your token (e.g., “API Comment Access”)
- Select the appropriate scopes:
api (for general API access)
- Specifically for comments, you’ll need at least
api scope, which includes the ability to write comments
Create a GitLab personal access token
If using a GitLab personal access token, we suggest creating a new user, called “Paradime” and create the access token attached to this user.
Log in to your GitLab account
- Go to your user profile > Preferences > Access Tokens (or navigate to
https://gitlab.com/-/profile/personal_access_tokens)
- Enter a name for your token (e.g., “API Comment Access”)
- Select the appropriate scopes:
api (for general API access)
- Specifically for comments, you’ll need at least
api scope, which includes the ability to write comments
Add the API key and Credential in the GitLab variables
Finally you need to add the API key and Credentials generated in the previous step in GitLab CI/CD settings (not in the .gitlab-ci.yml file directly). Set the corresponding values for the following variable names:
PARADIME_WORKSPACE_UID
PARADIME_API_SECRET
PARADIME_API_ENDPOINT
GITLAB_TOKEN