Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
146483e76353
Commit
788785c5
authored
Nov 20, 2018
by
Grzegorz Bizon
Browse files
Exclude runners tokens from GitLab project exports
parent
35588c848dd4
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/gitlab/import_export/import_export.yml
View file @
146483e7
...
...
@@ -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
...
...
lib/gitlab/import_export/relation_factory.rb
View file @
146483e7
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment