Mondoo Docs

GitLab project

gitlab.project MQL resource for querying GitLab infrastructure with cnquery and cnspec.

GitLab

GitLab project

Use MQL in cnspec shell or policy:

gitlab.project
Min version: 5.15.0Defaults: fullName visibility webURL

Relationships

Mini Map
GitLab
9 resources · 15 relationshipsClick to select, expand fields to see properties.

Fields (44)

FieldTypeDescription
allowMergeOnSkippedPipelinerequired
intWhether merging merge requests is allowed when a pipeline is skipped
approvalRuleprivate
gitlab.project.approvalRuleGitLab project approval rule
approvalRules
[]gitlab.project.approvalRuleApproval rules for the project
approvalSettingprivate
gitlab.project.approvalSettingGitLab project approval settings
approvalSettings
gitlab.project.approvalSettingApproval settings for the project
archivedrequired
intWhether the project is archived
autocloseReferencedIssuesrequired
intWhether the project has autoclose referenced issues enabled
autoDevopsEnabledrequired
intWhether the Auto DevOps feature is enabled
containerRegistryEnabledrequired
intWhether the container registry feature is enabled
createdAtrequired
timeCreate date of the project
defaultBranchrequired
stringDefault Git branch
descriptionrequired
stringProject description
emailsDisabledrequired
intWhether project email notifications are disabled
emptyReporequired
intWhether the repo is empty
fileprivate
gitlab.project.fileGitLab project file
fullNamerequired
stringThe full name of the project, including the namespace
groupRunnersEnabledrequired
intWhether the project is enabled for group runners
idrequired
intProject ID
issuesEnabledrequired
intWhether the issues feature is enabled
jobsEnabledrequired
intWhether CI jobs are enabled
lfsEnabledrequired
intWhether the project has LFS enabled
member
gitlab.project.memberGitLab project member
mergeMethod
stringMerge methods for the project
mergeRequestsEnabledrequired
intWhether the merge request feature is enabled
mirrorrequired
intWhether the project is a mirror
namerequired
stringProject name
onlyAllowMergeIfAllDiscussionsAreResolvedrequired
intWhether merging merge requests is allowed only if all discussions are resolved
onlyAllowMergeIfPipelineSucceedsrequired
intWhether merging merge requests is allowed only if the pipelines succeed
packagesEnabledrequired
intWhether the packages feature is enabled
pathrequired
stringProject path
projectFiles
[]gitlab.project.fileList of files in the project repository
projectMembers
[]gitlab.project.memberList of members in the project with their roles
protectedBranchprivate
gitlab.project.protectedBranchGitLab protected branch
protectedBranches
[]gitlab.project.protectedBranchProtected branches settings for the project
removeSourceBranchAfterMergerequired
intWhether the merge request source brand is removed after merge
requirementsEnabledrequired
intWhether the requirements feature is enabled
serviceDeskEnabledrequired
intWhether the Service Desk feature is enabled
sharedRunnersEnabledrequired
intWhether the project is enabled for shared runners
snippetsEnabledrequired
intWhether the snippets feature is enabled
visibilityrequired
stringThe project's visibility level: private, internal, or public
webhookprivate
gitlab.project.webhookGitLab project webhook
webhooks
[]gitlab.project.webhookList of webhooks for the project
webURLrequired
stringURL of the project
wikiEnabledrequired
intWhether the wiki feature is enabled