Skip to content

Add a CLI script to generate audit event type YAML definitions

What does this MR do and why?

  1. Adds a ruby script to generate audit event type YAML definitions. This is similar to the existing bin/feature-flag CLI.
  2. Usage: bin/audit-event-type [options] <audit-event-type>
  3. Created lib/gitlab/audit/type/shared.rb so that PARAMS can be shared between bin/audit-event-type and lib/gitlab/audit/type/definition.rb.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

image

How to set up and validate locally

  1. Run bin/audit-event-type and input the required fields.
  2. It should create a new audit event type YAML definition at the correct path.

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 #367855 (closed)

Edited by Huzaifa Iftikhar

Merge request reports