Commit b01c1170 authored by SBassett's avatar SBassett
Browse files

Test external env variable in variables: directive

parent 0f2c6345
Pipeline #1405 passed with stage
in 48 seconds
......@@ -5,7 +5,7 @@ npm_audit_dependency_check:
variables:
# default secteam npm audit options
NPM_AUDIT_OPTIONS: "--moderate=true --skip-dev=true --report=true"
NPM_AUDIT_OPTIONS: ${WM_APPSEC_NPM_AUDIT_OPTIONS}
before_script:
- apt-get update -yqq && apt-get install -yqq git
......@@ -17,9 +17,6 @@ npm_audit_dependency_check:
file_list=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA -- \
{*package.json,*package-lock.json,*/package.json,*/package-lock.json})
echo $WM_APPSEC_NPM_AUDIT_OPTIONS
echo ${WM_APPSEC_NPM_AUDIT_OPTIONS}
echo "$WM_APPSEC_NPM_AUDIT_OPTIONS"
# check if alternative npm audit options were specified calling gitlab-ci.yml file
#if [ ! -z $WM_APPSEC_NPM_AUDIT_OPTIONS ]; then
# NPM_AUDIT_OPTIONS=$WM_APPSEC_NPM_AUDIT_OPTIONS
......
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