Use YAML.safe_load_file for import/export config
`YAML.load_file` in Psych v4, which is used by Ruby 3.1, defaults to `YAML.safe_load_file` (https://github.com/ruby/psych/issues/533). This change in behavior breaks the loading of the `import_export.yml` in Ruby 3.1+ and up. Fix this by using `YAML.safe_load_file` with aliases and symbols allowed. Relates to https://gitlab.com/gitlab-org/gitlab/-/issues/396231 Changelog: changed
显示
- lib/gitlab/import_export/config.rb 1 个添加, 1 个删除lib/gitlab/import_export/config.rb
- spec/lib/gitlab/import_export/attributes_finder_spec.rb 2 个添加, 1 个删除spec/lib/gitlab/import_export/attributes_finder_spec.rb
- spec/lib/gitlab/import_export/model_configuration_spec.rb 1 个添加, 1 个删除spec/lib/gitlab/import_export/model_configuration_spec.rb
想要评论请 注册 或 登录