Add encrypted optional option to DeployToken authentication field

This commit is contained in:
Etienne Baqué 2019-07-12 16:49:47 -04:00 committed by Stan Hu
parent 63ade4b819
commit 93cf412473
2 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ class DeployToken < ApplicationRecord
include TokenAuthenticatable
include PolicyActor
include Gitlab::Utils::StrongMemoize
add_authentication_token_field :token
add_authentication_token_field :token, encrypted: :optional
AVAILABLE_SCOPES = %i(read_repository read_registry).freeze
GITLAB_DEPLOY_TOKEN_NAME = 'gitlab-deploy-token'.freeze

View File