Add license-Scanning using ORT

This commit is contained in:
Niklas Zender 2020-10-14 07:43:21 +00:00
parent 2e941b85e9
commit cc21b71b31

View file

@ -129,3 +129,13 @@ pages:
- public - public
only: only:
- main - main
include:
- template: Security/License-Scanning.gitlab-ci.yml
license_scanning:
image:
name: "registry.gitlab.com/gitlab-org/security-products/analyzers/ort/ort:latest"
script:
- /opt/ort/bin/ort analyze -i $CI_PROJECT_DIR -o $CI_PROJECT_DIR/
- /opt/ort/bin/ort report -f GitLabLicenseModel -i $CI_PROJECT_DIR/analyzer-result.yml -o $CI_PROJECT_DIR/