Commit 69f2318f authored by SBassett's avatar SBassett
Browse files

See if gitlab ci likes this kind of variable expansion/assignment

parent ab38c3ae
Pipeline #1392 passed with stage
in 44 seconds
......@@ -12,8 +12,8 @@ npm_audit_dependency_check:
- npm install -g audit-ci
- |
# 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"
if [ ! -z ${WM_APPSEC_NPM_AUDIT_OPTIONS} ]; then
NPM_AUDIT_OPTIONS=${WM_APPSEC_NPM_AUDIT_OPTIONS}
fi
script:
......@@ -29,11 +29,11 @@ npm_audit_dependency_check:
npm install --package-lock-only
echo -e "\n "
echo -e "----- $f -----"
echo "$NPM_AUDIT_OPTIONS"
echo ${NPM_AUDIT_OPTIONS}
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
if [ "$TOTAL_EXIT_CODES" -gt 0 ]; then
......
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