summaryrefslogtreecommitdiff
path: root/app/serializers/group_variable_entity.rb
diff options
context:
space:
mode:
authormfluharty <mfluharty@gitlab.com>2019-03-29 09:46:31 -0600
committermfluharty <mfluharty@gitlab.com>2019-03-29 12:49:59 -0600
commit0481d699075ea48c67037088713689b8d66f1983 (patch)
tree200b5c4c0a4fac3f416ad4b8dbb402caa0a2eae7 /app/serializers/group_variable_entity.rb
parentee8f3d5cd806c5558a2153b1a545b371c47c600f (diff)
downloadgitlab-ce-0481d699075ea48c67037088713689b8d66f1983.tar.gz
Add control for variable value masking
Show masked switch for each variable When toggled on, the variable value will be masked in runner logs Show warning message if the switch is on but the value is not maskable
Diffstat (limited to 'app/serializers/group_variable_entity.rb')
-rw-r--r--app/serializers/group_variable_entity.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/serializers/group_variable_entity.rb b/app/serializers/group_variable_entity.rb
index 0edab4a3092..19c5fa26f34 100644
--- a/app/serializers/group_variable_entity.rb
+++ b/app/serializers/group_variable_entity.rb
@@ -6,4 +6,5 @@ class GroupVariableEntity < Grape::Entity
expose :value
expose :protected?, as: :protected
+ expose :masked?, as: :masked
end