Connect GitLab
This guide covers what to put into the connector form for GitLab.
Heplon authenticates as a service account on your top-level group. You need the Owner role on that group. On a self-managed instance you also need an administrator, unless the instance lets group Owners create service accounts.
1. Create the service account
In GitLab, open your top-level group and select Settings → Service accounts.
Select Add service account, enter heplon as its name, then select
Create service account.
2. Create its token
Next to the service account, select ⋮ → Manage access tokens, then Add new token. Set:
- Scopes:
api - Expiration date: your choice
Select Create personal access token and copy the token.
3. Add it to the group
In the same group, open Manage → Members and select Invite members. Invite the service account with the Developer role.
Heplon reads every project in the group and its subgroups. The api scope and
the Developer role also let Heplon push branches, start pipelines and open
merge requests.
Heplon writes in two places.
CI speedup measurement. The ci-pipeline-speedup detector tests a faster
pipeline on real CI runs. In a project it measures, it:
- creates branches below
heplon-detect/ci-pipeline-speedup/and commits to them, with[skip ci]in each commit message; - starts pipelines on those branches, at most 9 per project, 18 per sweep and 3
at the same time, with deploy jobs removed from
.gitlab-ci.ymlon its branches; - deletes its branches and cancels its live pipelines when it is done.
It opens no merge request. Your developers see the branches and the pipelines, and the pipelines use your runners.
Fixes. When you ask Heplon to fix a finding, it pushes the change to a
branch below heplon-fix/ and opens a draft merge request against the default
branch. It never merges.
Heplon never pushes to your default branch, merges a merge request, or changes a CI/CD variable or a protected branch rule.
4. Fill in the form
In Heplon, open Connectors, select Add connector, then GitLab.
GitLab is now connected to Heplon.