GitLab

Connect GitLab with a token to create workspaces from subgroups and keep teams in step with GitLab groups.

The GitLab integration brings your GitLab structure into LeoPrevent: subgroups become workspaces, and teams follow GitLab groups. Nothing is written to GitLab. Code is read only for repository context scans, on the projects you turn them on for.

Available to Admins and Owners.

Before you start#

Create a GitLab access token with the read_api scope. Use either:

  • a personal access token from someone in your top level group, or
  • a group access token with the Reporter role. On GitLab.com, group tokens need GitLab Premium.

Connect GitLab#

  1. Open Integrations and select GitLab.
  2. Enter your GitLab address: gitlab.com, or your self managed GitLab's https:// address. A self managed instance must be reachable from the internet.
  3. Paste the Access token.
  4. Select Connect.

If GitLab rejects the token, or it can't see any group, check its scope and role.

Import subgroups#

Open Workspaces, select New workspace, then Import from GitHub, GitLab or Bitbucket. See Create and import workspaces.

What LeoPrevent reads#

DataWhen
Group, subgroup, project and member namesAlways, through the read_api scope.
Members' email addressesWhere GitLab shares them.
Setup and configuration filesOnly for projects you turn context scans on for.

The token is stored encrypted.

Disconnect#

Select Disconnect in the GitLab drawer. Workspaces stop following GitLab subgroups, and nothing new arrives from GitLab. Reviews from the plugin carry on. To remove access completely, revoke the token in GitLab.

Updated 18 Nov 2026

Suggested articles