BigW Consortium Gitlab

mask_secret.rb 201 Bytes
Newer Older
1 2
module Ci::MaskSecret
  class << self
3
    def mask!(value, token)
4
      return value unless value.present? && token.present?
5

6
      value.gsub!(token, 'x' * token.length)
7
      value
8 9 10
    end
  end
end