Use SQL to query GitLab. Example:
select * from gitlab_project
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.ghttps://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
Further documentation can he found here
GitLab API Wrapper xanzy/go-gitlab (licensed separately using this Apache License)