diff options
Diffstat (limited to 'doc/user/compliance/license_scanning_of_cyclonedx_files/index.md')
-rw-r--r-- | doc/user/compliance/license_scanning_of_cyclonedx_files/index.md | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/user/compliance/license_scanning_of_cyclonedx_files/index.md b/doc/user/compliance/license_scanning_of_cyclonedx_files/index.md index 98404ecd2ed..81f7cc61782 100644 --- a/doc/user/compliance/license_scanning_of_cyclonedx_files/index.md +++ b/doc/user/compliance/license_scanning_of_cyclonedx_files/index.md @@ -22,8 +22,11 @@ Licenses not in the SPDX list are reported as "Unknown". License information can ## Configuration -Enable [Dependency Scanning](../../application_security/dependency_scanning/index.md#configuration) -and ensure that its prerequisites are met. +Prerequisites: + +- On GitLab self-managed only, enable [Synchronization with the GitLab License Database](../../../administration/settings/security_and_compliance.md#choose-package-registry-metadata-to-sync) in the Admin Area for the GitLab instance. On GitLab SaaS this step has already been completed. +- Enable [Dependency Scanning](../../application_security/dependency_scanning/index.md#enabling-the-analyzer) + and ensure that its prerequisites are met. From the `.gitlab-ci.yml` file, remove the deprecated line `Jobs/License-Scanning.gitlab-ci.yml`, if it's present. @@ -184,6 +187,7 @@ To remove the unneeded data: 1. If there is deprecated data in the database, remove it by running the following commands in order: ```ruby + ActiveRecord::Base.connection.execute('SET statement_timeout TO 0') PackageMetadata::PackageVersionLicense.delete_all PackageMetadata::PackageVersion.delete_all ``` |