Skip to content

Commit

Permalink
chore(ci): run snyk monitor on an ongoing basis MONGOSH-1809 (#2036)
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax authored Jun 20, 2024
1 parent f2b3c27 commit 47a232b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7908,8 +7908,10 @@ functions:
cat .sbom/vulnerability-report.md
fi

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

Expand Down
4 changes: 3 additions & 1 deletion .evergreen/evergreen.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -816,8 +816,10 @@ functions:
cat .sbom/vulnerability-report.md
fi

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

Expand Down

0 comments on commit 47a232b

Please sign in to comment.