Connection setup
Connect GitLab with a personal access token to use GitLab actions in Flow automations. The token’s scopes, the GitLab tier, and the account’s GitLab permissions determine which actions can succeed. This Preview connection supports GitLab.com, self-managed GitLab, and GitLab Dedicated instances. Flow verifies the connection with a read-only projects request before saving it.Prerequisites
- A GitLab instance reachable over HTTPS.
- A Flow admin who can manage integrations.
- A GitLab account with access to the projects that automations need.
- A GitLab personal access token with the
apiscope. - The
admin_modescope if the selected GitLab instance requires Admin Mode for administrator API requests.
Provider setup
Create the token in GitLab before you connect Flow.1
Open GitLab access tokens.
In GitLab, open your user preferences and select Access tokens.
2
Create a personal access token.
Give the token a name that identifies Flow and the automation environment.
3
Set an expiration date.
Choose a date that matches your organization’s credential rotation policy.
4
Select the required scopes.
Add
api. If the selected GitLab instance requires Admin Mode for administrator API requests, also add admin_mode.5
Create and copy the token.
GitLab shows the token once. Copy it and enter it only in the Flow connection form.
api scope gives broad REST API access through the token owner’s GitLab permissions. Restrict the GitLab administrator account, project memberships, and instance settings to the automation work that Flow must perform.
Verify provider access
Before you connect Flow, confirm that the token can list projects on the selected GitLab instance. Replace the example host with your GitLab instance origin.200 response with a JSON array means GitLab accepts the token and exposes the selected instance to the account. An empty array is valid. A 401, 403, or 404 response means Flow cannot verify the connection.
Connect in Flow
1
Open Integrations.
Search for GitLab. This connection is available to organizations with Preview access.
2
Select Connect.
Name the connection and choose which teams can access it.
3
Enter the GitLab instance URL.
Use the HTTPS origin for the instance, for example
https://gitlab.example.com. Do not include /api/v4, a path, query, or fragment.4
Enter the personal access token.
Paste the token you created in GitLab.
5
Complete verification.
Flow checks that the token can list projects on the selected instance.
6
Enable Automations for the intended team.
Open the connection and enable Automations for each team that needs it. Sharing a connection does not enable automations.
7
Select the permitted actions.
Review action access and approval requirements before using the connection in an automation.