Commit e5ecbae9 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Merge branch '14624-vendored-template-for-license-scanning' into 'master'

Introduce 'license_scanning' CI vendored template"

See merge request gitlab-org/gitlab!22773
parents 0d451fe1 c7e237ee
---
title: Introduce license_scanning CI template
merge_request: 22773
author:
type: added
# Read more about this feature here: https://docs.gitlab.com/ee/user/application_security/license_management/ # Deprecated: https://gitlab.com/gitlab-org/gitlab/issues/14624
# # Please, use License-Scanning.gitlab-ci.yml template instead
# Configure the scanning tool through the environment variables.
# List of the variables: https://gitlab.com/gitlab-org/security-products/license-management#settings
# How to set: https://docs.gitlab.com/ee/ci/yaml/#variables
variables: variables:
LICENSE_MANAGEMENT_SETUP_CMD: '' # If needed, specify a command to setup your environment with a custom package manager. LICENSE_MANAGEMENT_SETUP_CMD: '' # If needed, specify a command to setup your environment with a custom package manager.
...@@ -16,6 +13,7 @@ license_management: ...@@ -16,6 +13,7 @@ license_management:
SETUP_CMD: $LICENSE_MANAGEMENT_SETUP_CMD SETUP_CMD: $LICENSE_MANAGEMENT_SETUP_CMD
allow_failure: true allow_failure: true
script: script:
- echo "This template is deprecated, please use License-Scanning.gitlab-ci.yml template instead."
- /run.sh analyze . - /run.sh analyze .
artifacts: artifacts:
reports: reports:
......
# Read more about this feature here: https://docs.gitlab.com/ee/user/application_security/license_compliance/
#
# Configure the scanning tool through the environment variables.
# List of the variables: https://gitlab.com/gitlab-org/security-products/license-management#settings
# How to set: https://docs.gitlab.com/ee/ci/yaml/#variables
variables:
LICENSE_MANAGEMENT_SETUP_CMD: '' # If needed, specify a command to setup your environment with a custom package manager.
license_scanning:
stage: test
image:
name: "registry.gitlab.com/gitlab-org/security-products/license-management:$CI_SERVER_VERSION_MAJOR-$CI_SERVER_VERSION_MINOR-stable"
entrypoint: [""]
variables:
SETUP_CMD: $LICENSE_MANAGEMENT_SETUP_CMD
allow_failure: true
script:
- /run.sh analyze .
after_script:
- mv gl-license-management-report.json gl-license-scanning-report.json
artifacts:
reports:
license_scanning: gl-license-scanning-report.json
dependencies: []
only:
refs:
- branches
variables:
- $GITLAB_FEATURES =~ /\blicense_management\b/
except:
variables:
- $LICENSE_MANAGEMENT_DISABLED
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment