turbot/gitlab_insights

Query: branch_protected_count

Usage

powerpipe query gitlab_insights.query.branch_protected_count

SQL

select
'Protected' as label,
count(b.*) as value
from
gitlab_my_project p
join gitlab_branch b on p.id = b.project_id
where
b.protected;

Dashboards

The query is used in the dashboards: