From 2bba6504049eef502ec9519adc3881fc329dc02e Mon Sep 17 00:00:00 2001 From: Christoph Hartmann Date: Wed, 4 Oct 2023 21:00:11 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20improve=20gitlab=20mql=20queries?= =?UTF-8?q?=20(#272)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit uses .none instead of block queries --- core/mondoo-gitlab-security.mql.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/mondoo-gitlab-security.mql.yaml b/core/mondoo-gitlab-security.mql.yaml index a4bd3bf7..a356ce7c 100644 --- a/core/mondoo-gitlab-security.mql.yaml +++ b/core/mondoo-gitlab-security.mql.yaml @@ -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: @@ -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: