Skip to content

Guard Compliance CI evaluation against blank path

Tan Le requested to merge 333306-exclude-empty-compliance-pipeline-path into master

What does this MR do?

Guard Compliance CI evaluation against blank configuration path.

This change ensures the Compliance CI template is not evaluated if the compliance pipeline configuration location is blank (i.e. nil and empty string).

The empty string value was caused by a bug in bootstrap-vue library. This bug is addressed in v2.20.0 and will be followed up in gitlab-ui#883 (closed).

How to test

This requires a GitLab Ultimate license to use

  1. Log in as a group owner
  2. Navigate to Group > General Settings
  3. Add a new compliance framework to a group
  4. Move the cursor to the Compliance pipeline configuration location field but DO NOT enter any value
  5. Hit Save
  6. Tag project with the new compliance framework via Project > General Settings
  7. Run a new pipeline and observe the error

Screenshots (strongly suggested)

Compliance Configuration Pipeline Error
Screen_Shot_2021-06-29_at_6.26.12_pm Screen_Shot_2021-06-29_at_6.32.11_pm

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #333306 (closed)

Edited by Tan Le

Merge request reports