diff --git a/doc/user/compliance/audit_event_types.md b/doc/user/compliance/audit_event_types.md index d42185b7c18bd0fef88324a231d2ac53b21c96d8..9c24b48ddf4e6f22a206a51c66ac0fbe76357297 100644 --- a/doc/user/compliance/audit_event_types.md +++ b/doc/user/compliance/audit_event_types.md @@ -419,7 +419,7 @@ Audit event types belong to the following product categories. | Name | Description | Saved to database | Streamed | Introduced in | Scope | |:------------|:------------|:------------------|:---------|:--------------|:--------------| -| [`skip_pre_receive_secret_detection`](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/147855) | Triggered when secret push protection is skipped by the user| **{check-circle}** Yes | **{check-circle}** Yes | GitLab [16.11](https://gitlab.com/gitlab-org/gitlab/-/issues/441185) | Project | +| [`skip_secret_push_protection`](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/147855) | Triggered when secret push protection is skipped by the user| **{check-circle}** Yes | **{check-circle}** Yes | GitLab [16.11](https://gitlab.com/gitlab-org/gitlab/-/issues/441185) | Project | ### Security policy management diff --git a/ee/config/audit_events/types/skip_pre_receive_secret_detection.yml b/ee/config/audit_events/types/skip_secret_push_protection.yml similarity index 89% rename from ee/config/audit_events/types/skip_pre_receive_secret_detection.yml rename to ee/config/audit_events/types/skip_secret_push_protection.yml index fab91486a9b99464f668db1f2a874d3ae3e1a0c0..fb859bcd6bb444e5f26fd7be417da99929825096 100644 --- a/ee/config/audit_events/types/skip_pre_receive_secret_detection.yml +++ b/ee/config/audit_events/types/skip_secret_push_protection.yml @@ -1,5 +1,5 @@ --- -name: skip_pre_receive_secret_detection +name: skip_secret_push_protection description: Triggered when secret push protection is skipped by the user introduced_by_issue: https://gitlab.com/gitlab-org/gitlab/-/issues/441185 introduced_by_mr: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/147855 diff --git a/ee/lib/gitlab/checks/secrets_check.rb b/ee/lib/gitlab/checks/secrets_check.rb index 00b6743998d78ca0341a707ca9f3cd76da0cc512..bdd5ee29da3db32f2c8253f69a4ac41f77a64fd8 100644 --- a/ee/lib/gitlab/checks/secrets_check.rb +++ b/ee/lib/gitlab/checks/secrets_check.rb @@ -128,7 +128,7 @@ def log_audit_event(skip_method) message = "#{_('Secret push protection skipped via')} #{skip_method}" audit_context = { - name: "skip_pre_receive_secret_detection", + name: "skip_secret_push_protection", author: changes_access.user_access.user, target: project, scope: project,