Documentation
Plugins
Sources
GitLab
Configuration

GitLab Source Plugin Configuration Reference

Example

This example syncs from GitLab to a Postgres destination, using API Key authentication. The (top level) source spec section is described in the Source Spec Reference.

kind: source
# Common source-plugin configuration
spec:
  name: gitlab
  path: cloudquery/gitlab
  version: "v4.1.10"
  tables: ["gitlab_users"]
  destinations: ["postgresql"]

  # Gitlab specific configuration
  spec:
    access_token: "<YOUR_ACCESS_TOKEN_HERE>"
    base_url: "<INSTANCE_URL>" # optional, leave empty for GitLab SaaS
    # Optional parameters
    # concurrency: 10000

See tables for a list of supported tables.

GitLab Spec

This is the (nested) spec used by the GitLab source plugin:

  • access_token (string, required): An access token for your GitLab server. Instructions on how to generate an access token here (opens in a new tab).

  • base_url (string, optional): URL for your self hosted GitLab server. Leave empty for GitLab SaaS. Not all tables are supported for GitLab SaaS.

  • concurrency (int, optional, default: 10000): A best effort maximum number of Go routines to use. Lower this number to reduce memory usage.