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: ...@@ -101,6 +101,7 @@ excluded_attributes:
- :import_error - :import_error
- :mirror - :mirror
- :runners_token - :runners_token
- :runners_token_encrypted
- :repository_storage - :repository_storage
- :repository_read_only - :repository_read_only
- :lfs_enabled - :lfs_enabled
...@@ -116,6 +117,9 @@ excluded_attributes: ...@@ -116,6 +117,9 @@ excluded_attributes:
- :remote_mirror_available_overridden - :remote_mirror_available_overridden
- :description_html - :description_html
- :repository_languages - :repository_languages
namespaces:
- :runners_token
- :runners_token_encrypted
prometheus_metrics: prometheus_metrics:
- :common - :common
- :identifier - :identifier
......
...@@ -31,7 +31,7 @@ class RelationFactory ...@@ -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 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) def self.create(*args)
new(*args).create 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