summaryrefslogtreecommitdiff
path: root/lib/gitlab/audit
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-02-04 06:15:28 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-02-04 06:15:28 +0000
commit1a1473f44731b3f78a8485337abd3d14833efb4a (patch)
treef6e650301bc6a85242684518a91b20aee0f5f691 /lib/gitlab/audit
parent9f7f0ef116cd8f57446e1e395d8c2d6c88148096 (diff)
downloadgitlab-ce-1a1473f44731b3f78a8485337abd3d14833efb4a.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/audit')
-rw-r--r--lib/gitlab/audit/ci_runner_token_author.rb (renamed from lib/gitlab/audit/runner_registration_token_author.rb)2
-rw-r--r--lib/gitlab/audit/null_author.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/audit/runner_registration_token_author.rb b/lib/gitlab/audit/ci_runner_token_author.rb
index 53785236f72..cc140a29260 100644
--- a/lib/gitlab/audit/runner_registration_token_author.rb
+++ b/lib/gitlab/audit/ci_runner_token_author.rb
@@ -2,7 +2,7 @@
module Gitlab
module Audit
- class RunnerRegistrationTokenAuthor < Gitlab::Audit::NullAuthor
+ class CiRunnerTokenAuthor < Gitlab::Audit::NullAuthor
def initialize(token:, entity_type:, entity_path:)
super(id: -1, name: "Registration token: #{token}")
diff --git a/lib/gitlab/audit/null_author.rb b/lib/gitlab/audit/null_author.rb
index 254d3f1c7ac..64aec51471a 100644
--- a/lib/gitlab/audit/null_author.rb
+++ b/lib/gitlab/audit/null_author.rb
@@ -14,12 +14,12 @@ module Gitlab
# @param [Integer] id
# @param [String] name
#
- # @return [Gitlab::Audit::UnauthenticatedAuthor, Gitlab::Audit::DeletedAuthor, Gitlab::Audit::RunnerRegistrationTokenAuthor]
+ # @return [Gitlab::Audit::UnauthenticatedAuthor, Gitlab::Audit::DeletedAuthor, Gitlab::Audit::CiRunnerTokenAuthor]
def self.for(id, audit_event)
name = audit_event[:author_name] || audit_event.details[:author_name]
if audit_event.details.include?(:runner_registration_token)
- ::Gitlab::Audit::RunnerRegistrationTokenAuthor.new(
+ ::Gitlab::Audit::CiRunnerTokenAuthor.new(
token: audit_event.details[:runner_registration_token],
entity_type: audit_event.entity_type || audit_event.details[:entity_type],
entity_path: audit_event.entity_path || audit_event.details[:entity_path]