Commit 0f2c6345 authored by SBassett's avatar SBassett
Browse files

More testing of environment variables

parent fd43310b
Pipeline #1403 passed with stage
in 45 seconds
......@@ -17,10 +17,13 @@ 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
fi
#if [ ! -z $WM_APPSEC_NPM_AUDIT_OPTIONS ]; then
# NPM_AUDIT_OPTIONS=$WM_APPSEC_NPM_AUDIT_OPTIONS
#fi
# find all modified package.json files and run audit-ci against them
TOTAL_EXIT_CODES=0
......@@ -35,7 +38,7 @@ npm_audit_dependency_check:
echo -e "\n "
set -e
EXIT_CODE=0
audit-ci "$NPM_AUDIT_OPTIONS" || EXIT_CODE=$?
audit-ci ${NPM_AUDIT_OPTIONS} || EXIT_CODE=$?
TOTAL_EXIT_CODES=$(($TOTAL_EXIT_CODES + $EXIT_CODE))
done
......
Supports Markdown
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