debian-mirror-gitlab/doc/raketasks/spdx.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
982 B
Markdown
Raw Normal View History

2021-01-29 00:20:46 +05:30
---
2021-03-11 19:13:27 +05:30
stage: Secure
group: Composition Analysis
2021-02-22 17:27:13 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
2021-01-29 00:20:46 +05:30
---
2021-12-11 22:18:48 +05:30
# SPDX license list import **(ULTIMATE SELF)**
2020-10-24 23:57:45 +05:30
GitLab provides a Rake task for uploading a fresh copy of the [SPDX license list](https://spdx.org/licenses/)
to a GitLab instance. This list is needed for matching the names of [License Compliance policies](../user/compliance/license_compliance/index.md).
To import a fresh copy of the PDX license list, run:
```shell
# omnibus-gitlab
sudo gitlab-rake gitlab:spdx:import
# source installations
bundle exec rake gitlab:spdx:import RAILS_ENV=production
```
2022-08-27 11:52:29 +05:30
To perform this task in the [offline environment](../user/application_security/offline_deployments/index.md#defining-offline-environments),
2020-10-24 23:57:45 +05:30
an outbound connection to [`licenses.json`](https://spdx.org/licenses/licenses.json) should be
allowed.