steampipe plugin install theapsgroup/gitlab

Table: gitlab_project_repository

The gitlab_project_repository can be used to list out the files/folders within the repository.

However, you must specify a project_id in the where or join clause.

Examples

List all files/folders for a project repository

select
*
from
gitlab_project_repository
where
project_id = 123;

List all files for a project repository

select
*
from
gitlab_project_repository
where
project_id = 123
and type = 'blob'

List all folders for a project repository

select
*
from
gitlab_project_repository
where
project_id = 123
and type = 'tree'

Schema for gitlab_project_repository

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
idtextThe ID of the file or folder within the repository
modetextThe mode of the file or folder within the repository
nametextThe name of the file or folder within the repository
pathtextThe path of the file or folder within the repository
project_idbigint=The ID of the project this repository belongs to - link `gitlab_project.id`.
typetextThe type of the file or folder within the repository