theapsgroup / steampipe-plugin-gitlab

Use SQL to instantly query GitLab projects, groups and more. Open source CLI. No DB required.

Home Page:https://hub.steampipe.io/plugins/theapsgroup/gitlab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

image

GitLab plugin for Steampipe

Quick start

Install the plugin with Steampipe:

steampipe plugin install theapsgroup/gitlab

Configure the plugin using the configuration file:

vi ~/.steampipe/gitlab.spc

Or environment variables:

export GITLAB_TOKEN=f7Ea3C3ojOY0GLzmhS5kE

Start Steampipe:

steampipe query

Run a query:

select
  full_path,
  visibility,
  forks_count,
  star_count
from
  gitlab_my_project;

Developing

Prerequisites:

Clone:

git clone https://github.com/theapsgroup/steampipe-plugin-gitlab.git
cd steampipe-plugin-gitlab

Build, which automatically installs the new version to your ~/.steampipe/plugins directory:

make

Configure the plugin:

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

Try it!

steampipe query
> .inspect gitlab

Further reading:

Contributing

All contributions are subject to the Apache 2.0 open source license.

help wanted issues:

Credits

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

About

Use SQL to instantly query GitLab projects, groups and more. Open source CLI. No DB required.

https://hub.steampipe.io/plugins/theapsgroup/gitlab

License:Apache License 2.0


Languages

Language:Go 99.8%Language:PLSQL 0.1%Language:Makefile 0.0%