Commit 788785c5 authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Exclude runners tokens from GitLab project exports

parent 35588c848dd4
......@@ -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 @@ class RelationFactory
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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment