gitlab-org--gitlab-foss/config/initializers/gitlab_workhorse_secret.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
206 B
Ruby
Raw Normal View History

# frozen_string_literal: true
begin
Gitlab::Workhorse.secret
rescue StandardError
Gitlab::Workhorse.write_secret
end
# Try a second time. If it does not work this will raise.
Gitlab::Workhorse.secret