Mondoo Docs

GitHub repository branch protection

github.branchprotection MQL resource for querying GitHub infrastructure with cnquery and cnspec.

GitHubPrivate Resource

GitHub repository branch protection

Min version: 6.4.0Defaults: id

Relationships

Mini Map
GitHub
3 resources · 3 relationshipsClick to select, expand fields to see properties.

Fields (10)

FieldTypeDescription
allowDeletionsrequired
dictAllow deletions
allowForcePushesrequired
dictAllow force pushes
enforceAdminsrequired
dictInclude administrators
idrequired
stringRepository branch protection ID
requiredConversationResolutionrequired
dictRequire conversation resolution before merging
requiredPullRequestReviewsrequired
dictRequire a pull request before merging
requiredSignaturesrequired
intWhether signed commits are required
requiredStatusChecksrequired
dictRequire status checks to pass before merging
requireLinearHistoryrequired
dictRequire linear history
restrictionsrequired
dictRestrict who can push to matching branches