On this page
Connect GitLab
Link GitLab — either GitLab SaaS (gitlab.com) or a self-hosted instance — so Temps can read your repositories and deploy on every push. Start from Connect a Git Provider if you haven't opened the Git Providers page yet.
Connect GitLab
- 1
On the Add Git Provider screen, choose GitLab.
- 2
For self-hosted GitLab, enter your base URL (e.g. https://gitlab.yourcompany.com) in the GitLab Instance URL field; leave it as https://gitlab.com for GitLab SaaS.
- 3
Generate a GitLab personal access token with the api and read_repository scopes.
- 4
Paste the token into the Token field and click Connect.
Checkpoint: Confirm the provider status shows Active on the Git Providers page.
Connect with a personal access token
- On the Add Git Provider screen, choose GitLab.
- Self-hosted GitLab? A GitLab Instance URL field appears — enter your base URL, e.g.
https://gitlab.yourcompany.com. Leave it ashttps://gitlab.comfor GitLab SaaS. - Generate a personal access token at gitlab.com/-/user_settings/personal_access_tokens (or the equivalent path on your self-hosted instance) with the
apiandread_repositoryscopes. - Paste the token into the Token field and click Connect.
A self-hosted GitLab instance must be reachable over HTTPS — plaintext
http:// is rejected so your token is never sent in the clear.
Push webhook
Connecting the provider doesn't register a webhook by itself. Temps registers a GitLab project webhook for push and tag push events when you create a project from a GitLab repository, or when you switch an existing project's Git connection to GitLab. The webhook points at your Temps server's public URL, so GitLab must be able to reach it.
- The token's user needs at least the Maintainer role on the GitLab project; with a lower role Temps skips the webhook.
- Deliveries are signed with a per-project signing token, which needs GitLab 17.0 or later on self-hosted instances.
- If registration fails, the project is still created. The project's Git settings then show GitLab webhook not installed with an Install webhook button (Reinstall once one exists) to retry.
With the api scope, Temps can also post a preview comment on each merge request with the status and URL of its preview deployment.
Once connected, confirm the status shows Active and continue with Confirm the connection.