Skip to content

Commit 83b5345

Browse files
committed
Merge branch 'main' into 1.37-releases
2 parents d40c0f9 + 225e576 commit 83b5345

File tree

158 files changed

+43418
-41965
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+43418
-41965
lines changed

.depalignrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"^5.4.1",
1111
"^5.1.0",
1212
"^5.7.1",
13-
"^7.3.5"
13+
"^7.3.5",
14+
"^7.6.0"
1415
],
1516
"eslint-config-mongodb-js": [
1617
"^5.0.3",

.depcheckrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
ignores:
22
- '@mongodb-js/bump-monorepo-packages'
3+
- '@mongodb-js/sbom-tools'
34
# TODO: We keep webpack-cli/serve and testing-library/dom at the root to work
45
# around weird npm workspace hoising issues caused by outdated transient
56
# dependencies. This can go away when we update webpack and leafygreen to the

.evergreen/buildvariants.in.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
buildvariants:
2+
- name: generate-vulnerability-report
3+
display_name: Vulnerability Report
4+
run_on: ubuntu2004-large
5+
tasks:
6+
- name: generate-vulnerability-report
7+
28
- name: coverage
39
display_name: E2E Coverage
410
run_on: ubuntu2004-large

.evergreen/buildvariants.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
buildvariants:
2+
- name: generate-vulnerability-report
3+
display_name: Vulnerability Report
4+
run_on: ubuntu2004-large
5+
tasks:
6+
- name: generate-vulnerability-report
7+
28
- name: coverage
39
display_name: E2E Coverage
410
run_on: ubuntu2004-large

.evergreen/functions.yml

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ variables:
3131
EVERGREEN_VERSION_ID: ${version_id}
3232
EVERGREEN_WORKDIR: ${workdir}
3333
NODE_JS_VERSION: '16.17.0'
34-
NPM_VERSION: '8.15.1'
34+
NPM_VERSION: '8.19.4'
3535
# secrets
3636
HADRON_METRICS_INTERCOM_APP_ID: ${metrics_intercom_app_id}
3737
HADRON_METRICS_SEGMENT_API_KEY: ${metrics_segment_api_key}
@@ -424,7 +424,7 @@ functions:
424424
eval $(.evergreen/print-compass-env.sh)
425425
rm -rf mongodb-crypt && mkdir -p mongodb-crypt
426426
(cd mongodb-crypt && \
427-
curl -sSfL $(npx -y mongodb-download-url --enterprise --crypt_shared --version '>= 6.0.0') | \
427+
curl -sSfL $(npx -y mongodb-download-url --enterprise --crypt_shared --version '>= 7.0.0-rc0') | \
428428
tar -xvz)
429429
export COMPASS_CRYPT_LIBRARY_PATH=$(echo $PWD/mongodb-crypt/lib/mongo_*_v1.*)
430430
npm run test-csfle --workspace mongodb-data-service
@@ -546,3 +546,47 @@ functions:
546546
npm run publish-packages-next
547547
fi
548548
549+
generate-vulnerability-report:
550+
- command: shell.exec
551+
params:
552+
working_dir: src
553+
shell: bash
554+
env:
555+
<<: *compass-env
556+
DEBUG: ${debug}
557+
SNYK_TOKEN: ${snyk_token}
558+
script: |
559+
set -e
560+
# Load environment variables
561+
eval $(.evergreen/print-compass-env.sh)
562+
563+
# Can only fail if is not a patch:
564+
npm run generate-vulnerability-report || { [ "$EVERGREEN_IS_PATCH" == "true" ] && exit 0; } || exit 1
565+
- command: s3.put
566+
params:
567+
<<: *save-artifact-params
568+
local_file: src/.sbom/dependencies.json
569+
remote_file: ${project}/${revision}_${revision_order_id}/dependencies.json
570+
content_type: application/json
571+
optional: true
572+
- command: s3.put
573+
params:
574+
<<: *save-artifact-params
575+
local_file: src/.sbom/snyk-test-result.json
576+
remote_file: ${project}/${revision}_${revision_order_id}/snyk-test-result.json
577+
content_type: application/json
578+
optional: true
579+
- command: s3.put
580+
params:
581+
<<: *save-artifact-params
582+
local_file: src/.sbom/snyk-test-result.html
583+
remote_file: ${project}/${revision}_${revision_order_id}/snyk-test-result.html
584+
content_type: text/html
585+
optional: true
586+
- command: s3.put
587+
params:
588+
<<: *save-artifact-params
589+
local_file: src/.sbom/vulnerability-report.md
590+
remote_file: ${project}/${revision}_${revision_order_id}/vulnerability-report.md
591+
content_type: text/markdown
592+
optional: true

.evergreen/tasks.in.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@ tasks:
5555
vars:
5656
debug: 'compass-e2e-tests*,electron*,hadron*,mongo*'
5757

58+
- name: generate-vulnerability-report
59+
tags: ['required-for-publish', 'run-on-pr']
60+
commands:
61+
- func: prepare
62+
- func: install
63+
- func: bootstrap
64+
- func: generate-vulnerability-report
65+
vars:
66+
debug: 'compass*,electron*,hadron*,mongo*'
67+
5868
# Publish happens in one go to make sure we are not creating multiple github
5969
# releases in parallel
6070
- name: publish
@@ -72,7 +82,7 @@ tasks:
7282
scope: mongodb-compass
7383
- func: get-all-artifacts
7484
- func: publish
75-
85+
7686
- name: publish-packages-next
7787
tags: []
7888
depends_on:

.evergreen/tasks.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@ tasks:
5555
vars:
5656
debug: 'compass-e2e-tests*,electron*,hadron*,mongo*'
5757

58+
- name: generate-vulnerability-report
59+
tags: ['required-for-publish', 'run-on-pr']
60+
commands:
61+
- func: prepare
62+
- func: install
63+
- func: bootstrap
64+
- func: generate-vulnerability-report
65+
vars:
66+
debug: 'compass*,electron*,hadron*,mongo*'
67+
5868
# Publish happens in one go to make sure we are not creating multiple github
5969
# releases in parallel
6070
- name: publish
@@ -72,7 +82,7 @@ tasks:
7282
scope: mongodb-compass
7383
- func: get-all-artifacts
7484
- func: publish
75-
85+
7686
- name: publish-packages-next
7787
tags: []
7888
depends_on:

.github/workflows/bump-packages.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ jobs:
2929
node-version: ^16.17.0
3030
cache: 'npm'
3131

32-
- name: Install npm@8.15.1
32+
- name: Install npm@8.19.4
3333
run: |
34-
npm install -g npm@8.15.1
34+
npm install -g npm@8.19.4
3535
3636
- name: Install Dependencies
3737
run: |

.github/workflows/update-electron.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ jobs:
3030
node-version: ^16.17.0
3131
cache: 'npm'
3232

33-
- name: Install npm@8.15.1
33+
- name: Install npm@8.19.4
3434
run: |
35-
npm install -g npm@8.15.1
35+
npm install -g npm@8.19.4
3636
3737
- name: Install Dependencies
3838
run: |

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ mongodb-crypt
3232
# npm doesn't support nested npmrc in the monorepo
3333
packages/*/.npmrc
3434
config/*/.npmrc
35+
.sbom

0 commit comments

Comments
 (0)