Skip to content

Commit

Permalink
🧹 improve gitlab mql queries (#272)
Browse files Browse the repository at this point in the history
uses .none instead of block queries
  • Loading branch information
chris-rock authored Oct 4, 2023
1 parent 9ff1213 commit 2bba650
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/mondoo-gitlab-security.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ queries:
GitLab offers several options to configure 2FA for your users. To enable MFA in your GitLab, see [Enforce two-factor authentication](https://docs.gitlab.com/ee/security/two_factor_authentication.html) on the GitLab documentation site.
- uid: mondoo-gitlab-security-private-projects
title: Ensure all projects are private
mql: gitlab.group.projects { visibility != "public" }
mql: gitlab.group.projects.none( visibility == "public")
docs:
desc: |
GitLab allows users with the Owner role to set a project's visibility as:
Expand All @@ -100,7 +100,7 @@ queries:
To make the visibility of a GitLab project private, see [Change project visibility](https://docs.gitlab.com/ee/user/public_access.html#change-project-visibility).
- uid: mondoo-gitlab-security-private-project
title: Ensure the project is private
mql: gitlab.project { visibility != "public" }
mql: gitlab.project.visibility != "public"
docs:
desc: |
GitLab allows users with the Owner role to set a project's visibility as:
Expand Down

0 comments on commit 2bba650

Please sign in to comment.