This is a step-by-step guide on how to connect your self hosted GitLab account to Flow. If your repositories are behind a firewall, allowlist our IPs on port 443 over HTTPS. You also need a public DNS record pointing to the IP address to be exposed for Flow analysis. This DNS entry should match the TLS/SSL certificate that the server is utilizing.
Who can use this?
Important: We strongly recommend you use a service account to create this Integration. Please see How to create a service account for instructions and information about why service accounts are important. The service account will need to be added to the GitLab groups with at least a "reporter" permission in order to import repos into Flow.
To use repos, PRs, tickets and Webhooks when integrating with Flow, the service account needs to be a maintainer or owner at the project and repository level. If you prefer not to enable Webhooks, the minimum permission needed in GitLab is reporter at the project and repository level.
GitLab 9.0 or higher
GitLab Enterprise configuration
In order to connect your GitLab Enterprise, first create a new integration. In Flow, go to the top navigation bar and click Settings. Using the left navigation under Integrations, click Integrations. Click Add Integration in the top right hand corner of the integrations page. On the following page select GitLab Self-Hosted from the Integration Provider list and click Next.
Choose to connect via an OAuth application or access token.
On any page of your GitLab instance, click your user icon and then navigate to Settings and Applications. Fill in the following information under Add new application:
Scopes: api, read_user
Then fill in your Application ID, Client Secret, and Base URL from GitLab into the Flow integration screen.
Click Connect to GitLab Self-Hosted. If Flow is able to successfully access your instance, you will see a success message.
If your connection is not successful, verify your Client ID and Secret, Base URL, and the callback URL you provided when creating the OAuth application in GitLab.
You can connect via an access token. On the access token tab, input your access token and click Test connection. For more information on where to create an access token in GitLab, see GitLab’s support document Personal access tokens. Once you've inputted your information, click Test connection.
If the connection was successful, you will receive a success message.
If you receive an error, verify the access token and base URL and try again.
Once you have successfully connected to your GitLab account, click Next.
Then you will select the services you want turned on for this Integration. If you would like to import ticket and pull request data in addition to repo data, leave all services on. You can turn services on and off at any time. Click Next.
Name your integration so you can identify the account you connected with. Click Create.
You can begin to import your repos by going to your repo import page. Click the repo import page link. To learn more about managing your new integration settings, see Manage integrations.
If you need help, please email Support (opens email form) for 24/7 assistance.