theapsgroup/gitlab

GitHub
steampipe plugin install theapsgroup/gitlabsteampipe plugin install theapsgroup/gitlab

GitLab + Turbot Steampipe

GitLab is a provider of Internet hosting for software development and version control using Git. It offers the distributed version control and source code management (SCM) functionality of Git, plus its own features.

Steampipe is an open source CLI for querying cloud APIs using SQL from Turbot

Documentation

Getting Started

Installation

steampipe plugin install theapsgroup/gitlab

Prerequisites

Configuration

The preferred option is to use Environment Variables for configuration.

However, you can configure in the ~/.steampipe/config/gitlab.spc (this will take precedence).

Environment Variables:

  • GITLAB_ADDR for the base url for the API endpoint (ex: https://gitlab.mycompany.com/api/v4)
  • GITLAB_TOKEN for the API token (ex: f7Ea3C3ojOY0GLzmhS5kE)

Configuration File:

connection "gitlab" {
plugin = "theapsgroup/gitlab"
baseurl = "https://gitlab.mycompany.com/api/v4"
token = "f7Ea3C3ojOY0GLzmhS5kE"
}

Testing

A quick test can be performed from your terminal with:

steampipe query "select * from gitlab_version"