提交 478c15fa 编写于 作者: G Grzegorz Bizon

Exclude runners tokens from GitLab project exports

上级 0a611caa
......@@ -101,6 +101,7 @@ excluded_attributes:
- :import_error
- :mirror
- :runners_token
- :runners_token_encrypted
- :repository_storage
- :repository_read_only
- :lfs_enabled
......@@ -116,6 +117,9 @@ excluded_attributes:
- :remote_mirror_available_overridden
- :description_html
- :repository_languages
namespaces:
- :runners_token
- :runners_token_encrypted
prometheus_metrics:
- :common
- :identifier
......
......@@ -31,7 +31,7 @@ module Gitlab
EXISTING_OBJECT_CHECK = %i[milestone milestones label labels project_label project_labels group_label group_labels project_feature].freeze
TOKEN_RESET_MODELS = %w[Ci::Trigger Ci::Build ProjectHook].freeze
TOKEN_RESET_MODELS = %w[Project Namespace Group Ci::Trigger Ci::Build ProjectHook].freeze
def self.create(*args)
new(*args).create
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册