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
Get started
Install
Download and install the latest GitLab plugin:
steampipe plugin install theapsgroup/gitlab
Configuration
Installing the latest GitLab plugin will create a config file (~/.steampipe/config/gitlab.spc
) with a single connection named gitlab
:
connection "gitlab" { plugin = "theapsgroup/gitlab"
# The baseUrl of your GitLab Instance API (ignore if set in GITLAB_ADDR env var) # baseurl = "https://gitlab.company.com/api/v4"
# Access Token for which to use for the API (ignore if set in GITLAB_TOKEN env var) # token = "x11x1xXxXx1xX1Xx11"}
token
- Personal access token for your GitLab account. This can also be set via theGITLAB_TOKEN
environment variable.baseurl
- GitLab URL (e.g.https://gitlab.company.com/api/v4
). Not required for GitLab cloud. This can also be via theGITLAB_ADDR
environment variable.
Configuration file example
connection "gitlab" { plugin = "theapsgroup/gitlab" baseurl = "https://gitlab.mycompany.com/api/v4" token = "f7Ea3C3ojOY0GLzmhS5kE"}
Get involved
- Open source: https://github.com/theapsgroup/steampipe-plugin-gitlab
- Community: Join #steampipe on Slack →