steampipe plugin install theapsgroup/gitlab

Table: gitlab_project_variable

The gitlab_project_variable table can be used to view information about variables within GitLab at the Project level.

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

Examples

List all variables for a project

select
key,
value,
variable_type,
environment_scope,
masked,
protected,
raw
from
gitlab_project_variable
where
project_id = 173;

Get a specific variable for a project by key

select
key,
value,
variable_type,
environment_scope,
masked,
protected,
raw
from
gitlab_project_variable
where
project_id = 173
and key = 'VARIABLE_NAME';

Schema for gitlab_project_variable

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
environment_scopetextThe environment(s) that this variable is in scope for.
keytext=The key of the variable.
maskedbooleanIndicates if the variable is masked (hidden) in job logs.
project_idbigint=The ID of the project this repository belongs to - link `gitlab_project.id`.
protectedbooleanIndicates if the variable is only applied to protected branches.
rawbooleanIndicates if the variable is is a raw format.
valuetextThe value of the variable.
variable_typetextThe type of the variable (env var, etc).