Skip to content

Commit 47a232b

Browse files
authored
chore(ci): run snyk monitor on an ongoing basis MONGOSH-1809 (#2036)
1 parent f2b3c27 commit 47a232b

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
@@ -7908,8 +7908,10 @@ functions:
79087908
cat .sbom/vulnerability-report.md
79097909
fi
79107910

7911-
# Fails if the report failed and is not a patch, including during releases:
79127911
if [[ "${is_patch}" != "true" ]]; then
7912+
# Run `snyk monitor` to keep `main` tracked
7913+
npx snyk monitor --org=dcd6db53-1532-4e65-beca-55db83f2cd52 --file=package-lock.json
7914+
# Fails if the report failed and is not a patch, including during releases:
79137915
exit $return_code
79147916
fi
79157917

.evergreen/evergreen.yml.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,8 +816,10 @@ functions:
816816
cat .sbom/vulnerability-report.md
817817
fi
818818

819-
# Fails if the report failed and is not a patch, including during releases:
820819
if [[ "${is_patch}" != "true" ]]; then
820+
# Run `snyk monitor` to keep `main` tracked
821+
npx snyk monitor --org=dcd6db53-1532-4e65-beca-55db83f2cd52 --file=package-lock.json
822+
# Fails if the report failed and is not a patch, including during releases:
821823
exit $return_code
822824
fi
823825

0 commit comments

Comments
 (0)