Skip to content
← All integrations

GitLab

Developer

Check GitLab projects and groups for development security controls.

why it matters

Why GitLab matters for compliance

For teams on GitLab, merge requests are the change management record. Auditors expect the default branch to be protected, at least one approval before merging, two-factor authentication enforced for the group, and security scanning in the pipeline. Each of these is a per-project or per-group setting, so coverage slips as new projects appear.

Varman checks that every owned group enforces 2FA, that each project protects its default branch, that merge requests need at least one approval, and that each .gitlab-ci.yml includes SAST or dependency scanning. These feed the 2FA, Code Changes, and Secure Code tasks for SOC 2, ISO 27001, HIPAA, PCI DSS, NIST, CMMC Level 2, NIS 2, and GDPR.

what it checks

GitLab checks in Varman

Connect GitLab to monitor repository security, branch and merge protection, group 2FA, and pipeline security scanning. Varman runs 4 checks against GitLab on a schedule and records each result as evidence.

2FA Enforcement

high severity

Verify that every owned GitLab group enforces two-factor authentication

Fails when
2FA not enforced in
How to fix
Confirm the GitLab connection is active and the token has the read_api scope, then rerun the check.

Evidence for the 2FA task. Used by CMMC L2, HIPAA, ISO 27001, NIS 2, NIST 800-171, NIST CSF, PCI DSS, PIPEDA, SOC 2.

Branch Protection Enabled

high severity

Verify that each project's default branch has protection rules configured

Fails when
No projects were returned for the connected account, so branch protection could not be evaluated.
Default branch not protected in
How to fix
Confirm the connected account is a member of at least one project and that the token has the read_api scope.
Reconnect with an account that has at least Maintainer access to this project, then rerun the check.

Evidence for the Code Changes task. Used by CMMC L2, HIPAA, ISO 27001, ISO 42001, NIS 2, NIST 800-171, NIST CSF, PCI DSS, SOC 2.

Merge Request Approvals Required

high severity

Verify that each project requires at least one approval before merging

Fails when
No projects were returned for the connected account, so merge request approval rules could not be evaluated.
No merge approvals required in
How to fix
Confirm the connected account is a member of at least one project and that the token has the read_api scope.
Reconnect with an account that has at least Maintainer access to this project, then rerun the check.

Evidence for the Code Changes task. Used by CMMC L2, HIPAA, ISO 27001, ISO 42001, NIS 2, NIST 800-171, NIST CSF, PCI DSS, SOC 2.

SAST / Dependency Scanning Enabled

medium severity

Verify that each project configures SAST or dependency scanning in its .gitlab-ci.yml pipeline

Fails when
No projects were returned for the connected account, so SAST / dependency scanning could not be evaluated.
No CI pipeline in
No security scanning in
How to fix
Confirm the connected account is a member of at least one project and that the token has the read_api and read_repository scopes.
Add a .gitlab-ci.yml that includes GitLab's managed security templates, e.g.\ninclude:\n - template: Jobs/SAST.gitlab-ci.yml\n - template: Jobs/Dependency-Scanning.gitlab-ci.yml
Reconnect with an account that has repository read access to this project (read_repository scope), then rerun the check.

Evidence for the Secure Code task. Used by GDPR.

frameworks

Frameworks GitLab evidence supports

In Varman, each check feeds an evidence task, and each task is mapped to requirements in the frameworks you run. Results from GitLab count toward these 11 frameworks.

how to connect

Connecting GitLab

An admin adds the details below in Varman under Integrations. Secret values are encrypted before they are stored.

Personal Access Token
GitLab > User Settings > Access Tokens. Needs scopes: read_api, read_user, read_repository.
questions

GitLab questions, answered.

What access does Varman need to GitLab?

A personal access token from User Settings, Access Tokens, with the read_api, read_user, and read_repository scopes. For branch and approval checks, the account should have at least Maintainer access to the projects.

How do I pass the SAST and dependency scanning check?

Include GitLab managed security templates in .gitlab-ci.yml, for example Jobs/SAST.gitlab-ci.yml and Jobs/Dependency-Scanning.gitlab-ci.yml. A project with no CI pipeline fails.

Which GitLab settings matter most for SOC 2?

Protected default branches and required merge request approvals show that changes are reviewed. Group-level 2FA shows that access to code is protected. Both are high severity in Varman.

How often are GitLab checks run?

GitLab checks run on a schedule. If a check reports no projects, confirm the account is a project member and the token has read_api, then run it again.

More Developer integrations