summaryrefslogtreecommitdiff
path: root/app/models/ci/build.rb
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-11-29 12:02:01 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-12-05 10:53:48 +0100
commit9a89ed4833b6267c1d92d9326b07b2a15f51d2e8 (patch)
treed1d845a67071132d7065d18eb9da29d5634a1351 /app/models/ci/build.rb
parent03f4ad4323bed8bc04ad3d93a50e187e6677281e (diff)
downloadgitlab-ce-9a89ed4833b6267c1d92d9326b07b2a15f51d2e8.tar.gz
Encrypt builds token by default with insecure fallback
Diffstat (limited to 'app/models/ci/build.rb')
-rw-r--r--app/models/ci/build.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb
index d60861dc95f..d86a6eceb59 100644
--- a/app/models/ci/build.rb
+++ b/app/models/ci/build.rb
@@ -120,7 +120,7 @@ module Ci
acts_as_taggable
- add_authentication_token_field :token
+ add_authentication_token_field :token, encrypted: true, fallback: true
before_save :update_artifacts_size, if: :artifacts_file_changed?
before_save :ensure_token