Audit events for pre-receive secret detection skip via push option

Overview

Related to #457024 (closed)

With #441185 (closed) (MR: !147855 (merged)) we added audit events for:

  • When a user skips pre-receive secret detection via a commit message.
  • When pre-receive secret detection is enabled/disabled at an instance level.

We also plan to work on:

Therefore, we should iterate on audit events created by, adding new events for:

  • When pre-receive secret detection is skipped via a push option.

Proposal

In order to account for the changes introduced in #451352 (closed) and #435315 (closed) we should work on the following tasks:

  • Create audit event when user skips pre-receive secret detection via push option
  • Include branch name in audit log when pre-receive secret detection is skipped via push option or commit message
  • Include commit id in audit log when pre-receive secret detection is skipped via push option on a single commit
Edited by Serena Fang