2020-10-30 17:08:52 -04:00
---
2021-01-19 13:11:04 -05:00
stage: Secure
group: Composition Analysis
2020-11-26 01:09:20 -05:00
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
2020-10-30 17:08:52 -04:00
---
2021-11-16 04:13:21 -05:00
# SPDX license list import **(ULTIMATE SELF)**
2020-08-17 14:10:01 -04:00
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-12 08:11:32 -04:00
To perform this task in the [offline environment ](../user/application_security/offline_deployments/index.md#defining-offline-environments ),
2020-08-17 14:10:01 -04:00
an outbound connection to [`licenses.json` ](https://spdx.org/licenses/licenses.json ) should be
allowed.