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.projectMin version: 5.15.0Defaults:
fullName visibility webURLRelationships
9 resources · 15 relationships·Click to select, expand fields to see properties.
Fields (44)
| Field | Type | Description |
|---|---|---|
allowMergeOnSkippedPipelinerequired | int | Whether merging merge requests is allowed when a pipeline is skipped |
approvalRuleprivate | gitlab.project.approvalRule | GitLab project approval rule |
approvalRules | []gitlab.project.approvalRule | Approval rules for the project |
approvalSettingprivate | gitlab.project.approvalSetting | GitLab project approval settings |
approvalSettings | gitlab.project.approvalSetting | Approval settings for the project |
archivedrequired | int | Whether the project is archived |
autocloseReferencedIssuesrequired | int | Whether the project has autoclose referenced issues enabled |
autoDevopsEnabledrequired | int | Whether the Auto DevOps feature is enabled |
containerRegistryEnabledrequired | int | Whether the container registry feature is enabled |
createdAtrequired | time | Create date of the project |
defaultBranchrequired | string | Default Git branch |
descriptionrequired | string | Project description |
emailsDisabledrequired | int | Whether project email notifications are disabled |
emptyReporequired | int | Whether the repo is empty |
fileprivate | gitlab.project.file | GitLab project file |
fullNamerequired | string | The full name of the project, including the namespace |
groupRunnersEnabledrequired | int | Whether the project is enabled for group runners |
idrequired | int | Project ID |
issuesEnabledrequired | int | Whether the issues feature is enabled |
jobsEnabledrequired | int | Whether CI jobs are enabled |
lfsEnabledrequired | int | Whether the project has LFS enabled |
member | gitlab.project.member | GitLab project member |
mergeMethod | string | Merge methods for the project |
mergeRequestsEnabledrequired | int | Whether the merge request feature is enabled |
mirrorrequired | int | Whether the project is a mirror |
namerequired | string | Project name |
onlyAllowMergeIfAllDiscussionsAreResolvedrequired | int | Whether merging merge requests is allowed only if all discussions are resolved |
onlyAllowMergeIfPipelineSucceedsrequired | int | Whether merging merge requests is allowed only if the pipelines succeed |
packagesEnabledrequired | int | Whether the packages feature is enabled |
pathrequired | string | Project path |
projectFiles | []gitlab.project.file | List of files in the project repository |
projectMembers | []gitlab.project.member | List of members in the project with their roles |
protectedBranchprivate | gitlab.project.protectedBranch | GitLab protected branch |
protectedBranches | []gitlab.project.protectedBranch | Protected branches settings for the project |
removeSourceBranchAfterMergerequired | int | Whether the merge request source brand is removed after merge |
requirementsEnabledrequired | int | Whether the requirements feature is enabled |
serviceDeskEnabledrequired | int | Whether the Service Desk feature is enabled |
sharedRunnersEnabledrequired | int | Whether the project is enabled for shared runners |
snippetsEnabledrequired | int | Whether the snippets feature is enabled |
visibilityrequired | string | The project's visibility level: private, internal, or public |
webhookprivate | gitlab.project.webhook | GitLab project webhook |
webhooks | []gitlab.project.webhook | List of webhooks for the project |
webURLrequired | string | URL of the project |
wikiEnabledrequired | int | Whether the wiki feature is enabled |