Skip to content

Commit 98de53f

Browse files
authored
fix: snyk integration with the latest npm (#2660)
chore: Disable --strict-out-of-sync to bypass npm issues
1 parent 7191cc7 commit 98de53f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.evergreen.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5276,7 +5276,9 @@ functions:
52765276
52775277
if [[ "${is_patch}" != "true" ]]; then
52785278
# Run `snyk monitor` to keep `main` tracked
5279-
npx snyk monitor --org=dcd6db53-1532-4e65-beca-55db83f2cd52 --file=package-lock.json
5279+
# TODO: remove --strict-out-of-sync=false once we update
5280+
# to a newer npm version in our toolchain
5281+
npx -y snyk monitor --org=dcd6db53-1532-4e65-beca-55db83f2cd52 --file=package-lock.json --strict-out-of-sync=false
52805282
# Fails if the report failed and is not a patch, including during releases:
52815283
exit $return_code
52825284
fi

.evergreen/evergreen.yml.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,9 @@ functions:
858858

859859
if [[ "${is_patch}" != "true" ]]; then
860860
# Run `snyk monitor` to keep `main` tracked
861-
npx snyk monitor --org=dcd6db53-1532-4e65-beca-55db83f2cd52 --file=package-lock.json
861+
# TODO: remove --strict-out-of-sync=false once we update
862+
# to a newer npm version in our toolchain
863+
npx -y snyk monitor --org=dcd6db53-1532-4e65-beca-55db83f2cd52 --file=package-lock.json --strict-out-of-sync=false
862864
# Fails if the report failed and is not a patch, including during releases:
863865
exit $return_code
864866
fi

0 commit comments

Comments
 (0)