- Prerequisites
- Create, edit, or delete a compliance framework
- Add a compliance framework to a project
- Default compliance frameworks
- Remove a compliance framework from a project
Compliance frameworks
You can create a compliance framework that is a label to identify that your project has certain compliance requirements or needs additional oversight. The label can optionally enforce compliance pipeline configuration to the projects on which it is applied.
Compliance frameworks are created on top-level groups. If a project is moved outside of its existing top-level group, its framework is removed.
Prerequisites
- To create, edit, and delete compliance frameworks, users must have either:
- The Owner role in the top-level group.
- Be assigned a custom role with the
admin_compliance_framework
custom permission.
- To add or remove a compliance framework to or from a project, the group to which the project belongs must have a compliance framework.
Create, edit, or delete a compliance framework
You can create, edit, or delete a compliance framework from a compliance framework report. For more information, see:
You can create, edit, or delete a compliance framework from a compliance projects report. For more information, see:
Subgroups and projects have access to all compliance frameworks created on their top-level group. However, compliance frameworks cannot be created, edited, or deleted at the subgroup or project level. Project owners can choose a framework to apply to their projects.
Add a compliance framework to a project
Add a compliance framework to a project. Compliance frameworks cannot be added to projects in personal namespaces.
To assign a compliance framework to a project, apply the compliance framework through the Compliance projects report.
You can use the GraphQL API to add a compliance framework to a project.
If you create compliance frameworks on subgroups with GraphQL, the framework is created on the root ancestor if the user has the correct permissions. The GitLab UI presents a read-only view to discourage this behavior.
Default compliance frameworks
- Introduced in GitLab 15.6.
Group owners can set a default compliance framework. The default framework is applied to all the new and imported projects that are created in that group. It does not affect the framework applied to the existing projects. The default framework cannot be deleted.
A compliance framework that is set to default has a default label.
Set and remove a default by using the compliance center
To set as default (or remove the default) from compliance projects report:
- On the left sidebar, select Search or go to and find your group.
- Select Secure > Compliance center.
- On the page, select the Projects tab.
- Hover over a compliance framework, select the Edit Framework tab.
- Select Set as default.
- Select Save changes.
To set as default (or remove the default) from compliance framework report:
- On the left sidebar, select Search or go to and find your group.
- Select Secure > Compliance center.
- On the page, select the Frameworks tab.
- Hover over a compliance framework, select the Edit Framework tab.
- Select Set as default.
- Select Save changes.
Remove a compliance framework from a project
To remove a compliance framework from one or multiple project in a group, remove the compliance framework through the Compliance projects report.