steampipe plugin install theapsgroup/gitlab

Table: gitlab_group_push_rule

The gitlab_group_push_rule table can be used to query information about the rules associated with pushing to projects/repos in a specific group.

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

Examples

Obtain the push rules for a specific group

select
id,
created_at,
commit_message_regex,
commit_message_negative_regex,
branch_name_regex,
deny_delete_tag,
member_check,
prevent_secrets,
author_email_regex,
file_name_regex,
max_file_size,
commit_committer_check,
reject_unsigned_commits
from
gitlab_group_push_rule
where
group_id = 14597683;

Schema for gitlab_group_push_rule

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
author_email_regextextThe regex that commit authors email address must adhere to.
branch_name_regextextThe regex that a branch name must adhere to.
commit_committer_checkbooleanIndicates if committer must have a verified email address.
commit_message_negative_regextextThe regex that a commit message can not adhere to.
commit_message_regextextThe regex that a commit message must adhere to.
created_attimestamp with time zoneTimestamp of when the group push rule was created.
deny_delete_tagbooleanIndicates if tag deletion will be denied.
file_name_regextextThe regex that file names must not adhere to.
group_idbigint=The group id - link to gitlab_group.id`.
idbigintThe ID of the push rule.
max_file_sizebigintLength of maximum file size (MB).
member_checkbooleanIndicates if member checks are performed.
prevent_secretsbooleanIndicates if push should be denied if contains secrets.
reject_unsigned_commitsbooleanIndicates if commits not signed by GPG will be rejected.