Skip to content

Add event names for changes in Protected Branches settings

What does this MR do and why?

This MR adds a meaningful audit event name in Project CICD settings when ever a setting is updated

Solves:

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Setup audit event streaming on a group https://docs.gitlab.com/ee/administration/audit_event_streaming.html#add-a-new-streaming-destination
    1. Hint: use https://webhook.site/
  2. Create a new project https://docs.gitlab.com/ee/user/project/working_with_projects.html#create-a-project
  3. Change the settings for Allowed to force push: and Require approval from code owners: in protected Branches settings https://docs.gitlab.com/ee/user/project/protected_branches.html#configure-a-protected-branch
  4. Check audit event is streamed with correct event name.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #369318 (closed)

Edited by Amparo Luna

Merge request reports