Docs
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: "v3.0.0"
  tables: ["*"]
  destinations: ["postgresql"]
  
  # Gitlab specific configuration
  spec:
    access_token: "<YOUR_ACCESS_TOKEN_HERE>"
    base_url: "<INSTANCE_URL>"

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.