Help us learn about your current experience with the documentation. Take the survey.

SPDX 许可证列表导入 Rake 任务

  • 层级: Ultimate
  • 产品: GitLab Self-Managed

GitLab 提供了一个 Rake 任务,用于将最新的 SPDX 许可证列表 上传到 GitLab 实例。该列表是匹配 许可证批准策略 名称所必需的。

要导入一份最新的 SPDX 许可证列表,请运行:

# omnibus-gitlab
sudo gitlab-rake gitlab:spdx:import

# source installations
bundle exec rake gitlab:spdx:import RAILS_ENV=production

要在离线环境中执行此任务,应允许到 licenses.json 的出站连接。