From cc21b71b31ab24d11db6be0cfd157cc3432f2711 Mon Sep 17 00:00:00 2001 From: Niklas Zender Date: Wed, 14 Oct 2020 07:43:21 +0000 Subject: [PATCH] Add license-Scanning using ORT --- .gitlab-ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 99a3cd2..aaa4126 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -129,3 +129,13 @@ pages: - public only: - 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/