Connects workspaces to GitLab projects. Works with both GitLab.com and a self-managed instance.
Go to Settings → Version control → GitLab and provide two things:
gitlab.com, or your own instance's hostnameapi scopeThe token is stored encrypted, and is validated against the host before the connection is saved.
Use a group access token rather than a personal one where you can. A personal token carries one person's access and stops working when they leave or lose permissions, while a group token belongs to the group itself.
You can connect more than one host, so a GitLab.com connection and a self-managed connection can coexist in the same enterprise.
Subgroups are supported. A project's full path, including every subgroup, is what gets stored, so group/subgroup/project connects correctly.
The connection shows as no longer valid. Remove it and connect again with a new token.
The usual cause is token expiry. GitLab requires an expiry date on access tokens, so a connection needs its token replaced periodically. Set a calendar reminder ahead of the expiry date, because the connection stops working the moment the token lapses.