Skip to content

johnsmyth/steampipe-plugin-gitlab

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

GitLab plugin for Steampipe

Query GitLab with SQL

Use SQL to query GitLab. Example:

select * from gitlab_project

Get Started

Installation

steampipe plugin install theapsgroup/gitlab

Or if you prefer, you can clone this repository and build/install from source directly.

go build -o steampipe-plugin-gitlab.plugin

mv steampipe-plugin-gitlab.plugin ~/.steampipe/plugins/hub.steampipe.io/plugins/theapsgroup/gitlab@latest/steampipe-plugin-gitlab.plugin

cp config/gitlab.spc ~/.steampipe/config/gitlab.spc

Configuration is preferably done by ensuring you have the following Environment Variables set:

  • GITLAB_ADDR for the address of your GitLab API endpoint (e.g https://gitlab.mycompany.com/api/v4)
  • GITLAB_TOKEN for the API token used to access GitLab (private or personal access tokens accepted)

These can also be set in the configuration file: vi ~/.steampipe/config/gitlab.spc

Documentation

Further documentation can he found here

Credits

GitLab API Wrapper xanzy/go-gitlab (licensed separately using this Apache License)

About

A GitLab plugin for Steampipe

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.5%
  • PLSQL 0.5%