Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit ff3d674

Browse files
committed
fix(buld): Remove nsp check due to Node Security Platform service being depreciated
1 parent 5dc9fd7 commit ff3d674

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

scripts/_common.sh

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,11 @@ build_test()
9292
npm test
9393
check $? "npm test failure"
9494
fi
95-
if [ -s "$NSP" ]; then
96-
node $NSP check --output summary
97-
check $? "package.json vulnerability found" warn
98-
fi
95+
96+
# if [ -s "$NSP" ]; then
97+
# node $NSP check --output summary
98+
# check $? "package.json vulnerability found" warn
99+
# fi
99100
}
100101

101102
# Check errors
@@ -164,8 +165,15 @@ shrinkwrap()
164165
# Restore dependencies
165166
npm install
166167

167-
if [ -s "$NSP" -a -s "$SHRINKWRAP_JSON" ]; then
168-
node $NSP --shrinkwrap npm-shrinkwrap.json check --output summary
169-
check $? "shrinkwrap vulnerability found" warn
170-
fi
168+
# "The Node Security Platform service has been depreciated since 30 September this year.
169+
#
170+
# Beginning with npm@6, a new command, npm audit, recursively analyzes your dependency trees to identify
171+
# specifically what’s insecure, recommend a replacement, or fix it automatically with npm audit fix.
172+
#
173+
# Note that --audit-level high flag only works for NPM versions > v6.4.0"
174+
#
175+
# if [ -s "$NSP" -a -s "$SHRINKWRAP_JSON" ]; then
176+
# node $NSP --shrinkwrap npm-shrinkwrap.json check --output summary
177+
# check $? "shrinkwrap vulnerability found" warn
178+
# fi
171179
}

0 commit comments

Comments
 (0)