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_project_protected_branch
The gitlab_project_protected_branch
table can be used to query information on protected branches associated with a specific project.
However, you must specify a project_id
in the where or join clause.
Examples
Obtain protected branches for a specific project
select id, name, allow_force_push, code_owner_approval_required, push_access_levels, merge_access_levels, unprotect_access_levelsfrom gitlab_project_protected_branchwhere project_id = 1258;
Schema for gitlab_project_protected_branch
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form, e.g. connection_name. | |
allow_force_push | boolean | Indicates if force pushing is allowed on the protected branch. | |
code_owner_approval_required | boolean | Indicates if code owner approval is required. | |
id | bigint | The ID of the protected branch. | |
merge_access_levels | jsonb | Array of merge access levels. | |
name | text | The name of the protected branch. | |
project_id | bigint | = | The ID of the project the protected branch belongs to - link `gitlab_project.id`. |
push_access_levels | jsonb | Array of push access levels. | |
unprotect_access_levels | jsonb | Array of unprotected access levels. |