GitLab Compliance - Compliance Center and Frameworks
Estimated time to complete: 15 minutes
Objectives
Learners will run a few actions in GitLab that show up in the compliance center and view how you could see a framework in action.
Task A. Creating Compliance Center Events
-
Navigate to your
Compliance Project
project. -
In the left sidebar, select Secure > Compliance center.
In this section, you will see three failed checks in your project. In cases where the Status is Fail
, you will see View details (fix available)
in the More information column. Let’s see what information is shown in this section.
-
Select
View details (fix available)
in theAt least one non-author approval
row of your compliance center report. -
Review the details outlined in this section.
-
Close the details panel.
Throughout the labs in this course, we will see how to fix each of these compliance issues.
Task B. Creating compliance center violations
In this task, we will complete some actions in our project that will result in compliance center violations.
-
In the left sidebar, select Code > Repository.
-
Select + > New file.
-
For the filename, enter
main.py
. -
Add the following content to the file:
print("Start compliance project")
-
Underneath the Commit Message in the Target Branch field, enter
new-main
. -
Ensure that Start a new merge request with these changes is selected.
-
Select Commit changes.
-
In the resulting merge request, select Assign to me in the Assignees section.
-
Select Create merge request.
-
Select Merge.
-
After the merge request completes, select Secure > Compliance center.
-
Select the Violations tab.
-
Review the violation labelled Less than 2 approvers.
Lab Guide Complete
You have completed this lab exercise. You can view the other lab guides for this course.
Suggestions?
If you wish to make a change to the Hands-On Guide for GitLab Compliance, please submit your changes via Merge Request!
9be4ec57
)