doc/user/compliance/compliance_center/compliance_violations_report.md
{{< details >}}
{{< /details >}}
{{< history >}}
compliance_violations_report and enable_project_compliance_violations. Disabled by default.compliance_violations_report and enable_project_compliance_violations removed.{{< /history >}}
Use the compliance violations report to see a comprehensive view of compliance violations across all projects in your group. The report provides detailed information about violated controls, associated audit events, and allows you to manage violation statuses.
Before violations appear in the compliance violations report, you must:
When you've completed these steps, violations appear in the compliance violations report as they are detected.
Violations are automatically detected when audit events violate the controls defined in your framework. The system continuously monitors audit events and compares them against your framework's control definitions to identify non-compliance.
The following compliance controls are supported for violation detection:
minimum_approvals_required_1minimum_approvals_required_2merge_request_prevent_author_approvalmerge_request_prevent_committers_approvalFor more information about compliance controls, see Compliance frameworks.
Prerequisites:
To view the compliance violations report:
The compliance violations report displays:
In the report, you can:
{{< history >}}
{{< /history >}}
You can filter the compliance violations report to focus on specific violations:
The report updates automatically to show only violations matching your selected filters.
To clear filters, clear the filter options or select Clear.
When you select Details for a specific violation, you can view:
{{< history >}}
{{< /history >}}
You can add comments to violations to collaborate with your team on remediation efforts:
Your comment is added to the violation and visible to all users with access to the compliance violations report.
You can update the status of compliance violations to track their remediation progress. Available statuses include:
To change a violation status:
The status updates immediately and is reflected in the report.
{{< history >}}
{{< /history >}}
Export a CSV report of compliance violations for all projects in a group. The exported report includes:
Reports:
Prerequisites:
To export a compliance violations report:
A report is compiled and delivered to your email inbox as an attachment.
[!warning] This feature was deprecated in GitLab 18.2 and is planned for removal in 18.8.
The static compliance violations report provides a high-level view of merge request activity for all projects in the group.
When you select a row in the static compliance violations report, a drawer appears that provides:
[source] into [target].{{< history >}}
{{< /history >}}
Prerequisites:
To view the static compliance violations report:
You can sort the compliance report on:
You can filter the compliance violations report on:
Select a row to see details of the compliance violation.
Each compliance violation has one of the following severities.
<!-- vale gitlab_base.SubstitutionWarning = NO -->| Icon | Severity level |
|---|---|
| {{< icon name="severity-critical" >}} | Critical |
| {{< icon name="severity-high" >}} | High |
| {{< icon name="severity-medium" >}} | Medium |
| {{< icon name="severity-low" >}} | Low |
| {{< icon name="severity-info" >}} | Info |
| Violation | Severity level | Category | Description |
|---|---|---|---|
| Author approved merge request | High | Separation of duties | Author of the merge request approved their own merge request. For more information, see Prevent approval by merge request creator. |
| Committers approved merge request | High | Separation of duties | Committers of the merge request approved the merge request they contributed to. For more information, see Prevent approvals by users who add commits. |
| Fewer than two approvals | High | Separation of duties | Merge request was merged with fewer than two approvals. For more information, see Merge request approval rules. |
GitLab supports a separation of duties policy between users who create and approve merge requests. Our criteria for the separation of duties is:
{{< history >}}
compliance_violation_csv_export. Disabled by default.compliance_violation_csv_export removed in GitLab 16.9.{{< /history >}}
Export a report of merge request compliance violations on merge requests belonging to projects in a group. Reports:
Prerequisites:
To export a report of merge request compliance violations for projects in a group:
A report is compiled and delivered to your email inbox as an attachment.