gitlab_applicationgitlab_branchgitlab_commitgitlab_epicgitlab_groupgitlab_group_access_requestgitlab_group_hookgitlab_group_iterationgitlab_group_membergitlab_group_projectgitlab_group_push_rulegitlab_group_subgroupgitlab_group_variablegitlab_hookgitlab_instance_variablegitlab_issuegitlab_merge_requestgitlab_merge_request_changegitlab_my_eventgitlab_my_issuegitlab_my_projectgitlab_projectgitlab_project_access_requestgitlab_project_container_registrygitlab_project_deploymentgitlab_project_iterationgitlab_project_jobgitlab_project_membergitlab_project_pages_domaingitlab_project_pipelinegitlab_project_pipeline_detailgitlab_project_protected_branchgitlab_project_repositorygitlab_project_repository_filegitlab_project_variablegitlab_settinggitlab_snippetgitlab_usergitlab_user_eventgitlab_version
Table: gitlab_group_variable
The gitlab_group_variable
table can be used to view information about variables within GitLab at the Group level.
However, you must specify a group_id
in the where or join clause.
Examples
List all variables held against a group
select key, value, variable_type, environment_scope, masked, protected, rawfrom gitlab_group_variablewhere group_id = 42;
Get a specific variable for a group by key
select key, value, variable_type, environment_scope, masked, protected, rawfrom gitlab_group_variablewhere project_id = 42 and key = 'VARIABLE_NAME';
Schema for gitlab_group_variable
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form, e.g. connection_name. | |
environment_scope | text | The environment(s) that this variable is in scope for. | |
group_id | bigint | = | The ID of the group this repository belongs to - link `gitlab_group.id`. |
key | text | = | The key of the variable. |
masked | boolean | Indicates if the variable is masked (hidden) in job logs. | |
protected | boolean | Indicates if the variable is only applied to protected branches. | |
raw | boolean | Indicates if the variable is is a raw format. | |
value | text | The value of the variable. | |
variable_type | text | The type of the variable (env var, etc). |