diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-26 21:09:16 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-26 21:09:16 +0300 |
commit | 006a4f3c1c288c1ea59c3423225527897fa60d6e (patch) | |
tree | e4e0d2bb7de0b1ad82bd366088d007b9055d447a /lib/gitlab/ci/runner_instructions.rb | |
parent | 2446c39adaea91d1120c9eb0936e93e9314171c1 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/ci/runner_instructions.rb')
-rw-r--r-- | lib/gitlab/ci/runner_instructions.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/ci/runner_instructions.rb b/lib/gitlab/ci/runner_instructions.rb index dd0bfa768a8..cc92dfe7806 100644 --- a/lib/gitlab/ci/runner_instructions.rb +++ b/lib/gitlab/ci/runner_instructions.rb @@ -117,20 +117,20 @@ module Gitlab return unless @project raise Gitlab::Access::AccessDeniedError unless can?(@current_user, :admin_pipeline, @project) - @project.runners_token + '$REGISTRATION_TOKEN' end def group_token return unless @group raise Gitlab::Access::AccessDeniedError unless can?(@current_user, :admin_group, @group) - @group.runners_token + '$REGISTRATION_TOKEN' end def instance_token raise Gitlab::Access::AccessDeniedError unless @current_user&.admin? - Gitlab::CurrentSettings.runners_registration_token + '$REGISTRATION_TOKEN' end end end |