Skip to content

Commit 3c88363

Browse files
committed
Merge branch 'main' into ni/atlas-search
2 parents 23d1a17 + 2a8f602 commit 3c88363

File tree

83 files changed

+4370
-1618
lines changed

Some content is hidden

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

83 files changed

+4370
-1618
lines changed

.github/workflows/accuracy-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
steps:
3030
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
3131
- uses: actions/checkout@v5
32+
with:
33+
persist-credentials: false
3234
- uses: actions/setup-node@v6
3335
with:
3436
node-version-file: package.json
@@ -39,7 +41,7 @@ jobs:
3941
run: npm run test:accuracy
4042
- name: Upload accuracy test summary
4143
if: always()
42-
uses: actions/upload-artifact@v4
44+
uses: actions/upload-artifact@v5
4345
with:
4446
name: accuracy-test-summary
4547
path: .accuracy/test-summary.html

.github/workflows/check.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
steps:
1818
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
1919
- uses: actions/checkout@v5
20+
with:
21+
persist-credentials: false
2022
- uses: actions/setup-node@v6
2123
with:
2224
node-version-file: package.json
@@ -31,6 +33,8 @@ jobs:
3133
steps:
3234
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
3335
- uses: actions/checkout@v5
36+
with:
37+
persist-credentials: false
3438
- uses: actions/setup-node@v6
3539
with:
3640
node-version-file: package.json
@@ -45,6 +49,8 @@ jobs:
4549
steps:
4650
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
4751
- uses: actions/checkout@v5
52+
with:
53+
persist-credentials: false
4854
- uses: actions/setup-node@v6
4955
with:
5056
node-version-file: package.json

.github/workflows/cleanup-atlas-env.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
steps:
1414
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
1515
- uses: actions/checkout@v5
16+
with:
17+
persist-credentials: false
1618
- uses: actions/setup-node@v6
1719
with:
1820
node-version-file: package.json

.github/workflows/code-health-fork.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
---
22
name: Code Health (fork)
33
on:
4-
pull_request_target:
4+
pull_request:
55
branches:
66
- main
77

8-
permissions: {}
8+
permissions:
9+
contents: read
910

1011
jobs:
1112
run-tests:
1213
name: Run MongoDB tests
13-
# Code health disabled on forks for now
14-
# if: github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.head.repo.full_name != github.repository
15-
if: github.event.pull_request.user.login == 'dependabot[bot]'
14+
if: github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.head.repo.full_name != github.repository
1615
strategy:
1716
matrix:
1817
os: [ubuntu-latest, macos-latest, windows-latest]
@@ -22,6 +21,8 @@ jobs:
2221
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
2322
if: matrix.os == 'ubuntu-latest'
2423
- uses: actions/checkout@v5
24+
with:
25+
persist-credentials: false
2526
- uses: docker/setup-docker-action@v4
2627
if: matrix.os == 'ubuntu-latest'
2728
name: Setup Docker Environment
@@ -35,9 +36,12 @@ jobs:
3536
run: npm ci
3637
- name: Run tests
3738
run: npm test
39+
env:
40+
SKIP_ATLAS_TESTS: "true"
41+
SKIP_ATLAS_LOCAL_TESTS: "true"
3842
- name: Upload test results
3943
if: always() && matrix.os == 'ubuntu-latest'
40-
uses: actions/upload-artifact@v4
44+
uses: actions/upload-artifact@v5
4145
with:
4246
name: test-results
4347
path: coverage/lcov.info

.github/workflows/code-health-long-running.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ permissions: {}
1111
jobs:
1212
run-long-running-tests:
1313
name: Run long running tests
14-
if: github.event_name == 'push' || (github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository)
1514
runs-on: ubuntu-latest
1615
steps:
1716
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
1817
- uses: actions/checkout@v5
18+
with:
19+
persist-credentials: false
1920
- uses: actions/setup-node@v6
2021
with:
2122
node-version-file: package.json
@@ -29,7 +30,7 @@ jobs:
2930
MDB_MCP_API_BASE_URL: ${{ vars.TEST_ATLAS_BASE_URL }}
3031
run: npm test -- tests/integration/tools/atlas --project=long-running-tests
3132
- name: Upload test results
32-
uses: actions/upload-artifact@v4
33+
uses: actions/upload-artifact@v5
3334
if: always()
3435
with:
3536
name: atlas-test-results

.github/workflows/code-health.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ on:
66
- main
77
pull_request:
88

9-
permissions: {}
9+
permissions:
10+
contents: read
1011

1112
jobs:
1213
run-tests:
@@ -21,6 +22,8 @@ jobs:
2122
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
2223
if: matrix.os == 'ubuntu-latest'
2324
- uses: actions/checkout@v5
25+
with:
26+
persist-credentials: false
2427
- uses: docker/setup-docker-action@v4
2528
if: matrix.os == 'ubuntu-latest'
2629
name: Setup Docker Environment
@@ -39,7 +42,7 @@ jobs:
3942
SKIP_ATLAS_LOCAL_TESTS: "true"
4043
- name: Upload test results
4144
if: always() && matrix.os == 'ubuntu-latest'
42-
uses: actions/upload-artifact@v4
45+
uses: actions/upload-artifact@v5
4346
with:
4447
name: test-results
4548
path: coverage/lcov.info
@@ -51,6 +54,8 @@ jobs:
5154
steps:
5255
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
5356
- uses: actions/checkout@v5
57+
with:
58+
persist-credentials: false
5459
- uses: actions/setup-node@v6
5560
with:
5661
node-version-file: package.json
@@ -64,7 +69,7 @@ jobs:
6469
MDB_MCP_API_BASE_URL: ${{ vars.TEST_ATLAS_BASE_URL }}
6570
run: npm test -- tests/integration/tools/atlas/
6671
- name: Upload test results
67-
uses: actions/upload-artifact@v4
72+
uses: actions/upload-artifact@v5
6873
if: always()
6974
with:
7075
name: atlas-test-results
@@ -77,7 +82,9 @@ jobs:
7782
steps:
7883
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
7984
- uses: actions/checkout@v5
80-
- uses: actions/setup-node@v4
85+
with:
86+
persist-credentials: false
87+
- uses: actions/setup-node@v6
8188
with:
8289
node-version-file: package.json
8390
cache: "npm"
@@ -86,7 +93,7 @@ jobs:
8693
- name: Run tests
8794
run: npm test -- tests/integration/tools/atlas-local/
8895
- name: Upload test results
89-
uses: actions/upload-artifact@v4
96+
uses: actions/upload-artifact@v5
9097
if: always()
9198
with:
9299
name: atlas-local-test-results
@@ -99,6 +106,8 @@ jobs:
99106
needs: [run-tests, run-atlas-tests, run-atlas-local-tests]
100107
steps:
101108
- uses: actions/checkout@v5
109+
with:
110+
persist-credentials: false
102111
- uses: actions/setup-node@v6
103112
with:
104113
node-version-file: package.json

.github/workflows/codeql.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
steps:
2525
- name: Checkout repository
2626
uses: actions/checkout@v5
27+
with:
28+
persist-credentials: false
2729
- name: Initialize CodeQL
2830
uses: github/codeql-action/init@v4
2931
with:

.github/workflows/docker.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
config: ${{ vars.PERMISSIONS_CONFIG }}
1616
- name: Check out code
1717
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
18+
with:
19+
persist-credentials: false
1820
- name: Set up Docker Buildx
1921
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435
2022
- name: Login to Docker Hub

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ jobs:
8282
steps:
8383
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
8484
- uses: actions/checkout@v5
85+
with:
86+
persist-credentials: false
8587
- uses: actions/setup-node@v6
8688
with:
8789
node-version-file: package.json

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ tests/tmp
1313
coverage
1414
# Generated assets by accuracy runs
1515
.accuracy
16+
17+
.DS_Store

0 commit comments

Comments
 (0)