diff --git a/.github/workflows/code-health-fork.yml b/.github/workflows/code-health-fork.yml index be028cb7..da2cc9e9 100644 --- a/.github/workflows/code-health-fork.yml +++ b/.github/workflows/code-health-fork.yml @@ -12,35 +12,39 @@ jobs: name: Run MongoDB tests # Code health disabled on forks for now # if: github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.head.repo.full_name != github.repository - if: github.event.pull_request.user.login == 'dependabot[bot]' + # if: github.event.pull_request.user.login == 'dependabot[bot]' strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] fail-fast: false runs-on: ${{ matrix.os }} steps: - - uses: GitHubSecurityLab/actions-permissions/monitor@v1 - if: matrix.os == 'ubuntu-latest' - - uses: actions/checkout@v5 - - uses: docker/setup-docker-action@v4 - if: matrix.os == 'ubuntu-latest' - name: Setup Docker Environment - with: - set-host: true - - uses: actions/setup-node@v6 - with: - node-version-file: package.json - cache: "npm" - - name: Install dependencies - run: npm ci - - name: Run tests - run: npm test + - name: Check user + run: echo "USER = $USER" env: - SKIP_ATLAS_TESTS: "true" - SKIP_ATLAS_LOCAL_TESTS: "true" - - name: Upload test results - if: always() && matrix.os == 'ubuntu-latest' - uses: actions/upload-artifact@v5 - with: - name: test-results - path: coverage/lcov.info + USER_NAME: ${{github.event.pull_request.user.login}} + # - uses: GitHubSecurityLab/actions-permissions/monitor@v1 + # if: matrix.os == 'ubuntu-latest' + # - uses: actions/checkout@v5 + # - uses: docker/setup-docker-action@v4 + # if: matrix.os == 'ubuntu-latest' + # name: Setup Docker Environment + # with: + # set-host: true + # - uses: actions/setup-node@v6 + # with: + # node-version-file: package.json + # cache: "npm" + # - name: Install dependencies + # run: npm ci + # - name: Run tests + # run: npm test + # env: + # SKIP_ATLAS_TESTS: "true" + # SKIP_ATLAS_LOCAL_TESTS: "true" + # - name: Upload test results + # if: always() && matrix.os == 'ubuntu-latest' + # uses: actions/upload-artifact@v5 + # with: + # name: test-results + # path: coverage/lcov.info diff --git a/package-lock.json b/package-lock.json index 8a84500f..9ae300b7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -58,7 +58,7 @@ "globals": "^16.3.0", "knip": "^5.63.1", "mongodb": "^6.19.0", - "mongodb-runner": "^5.9.2", + "mongodb-runner": "^6.0.0", "openapi-types": "^12.1.3", "openapi-typescript": "^7.9.1", "prettier": "^3.6.2", @@ -1555,16 +1555,17 @@ } }, "node_modules/@mongodb-js/mongodb-downloader": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/@mongodb-js/mongodb-downloader/-/mongodb-downloader-0.4.2.tgz", - "integrity": "sha512-uCd6nDtKuM2J12jgqPkApEvGQWfgZOq6yUitagvXYIqg6ofdqAnmMJO3e3wIph+Vi++dnLoMv0ME9geBzHYwDA==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@mongodb-js/mongodb-downloader/-/mongodb-downloader-1.0.0.tgz", + "integrity": "sha512-xz4zr/5RWfAaHp9Kf7XPaLNxKaisl2NJGFEDQRNjB/ru79LdpLQbbSjQazTOl6JLcBvAjNNvauTeTwmgEvSUlA==", "dev": true, "license": "Apache-2.0", "dependencies": { "debug": "^4.4.0", "decompress": "^4.2.1", - "mongodb-download-url": "^1.6.2", + "mongodb-download-url": "^1.7.0", "node-fetch": "^2.7.0", + "proper-lockfile": "^4.1.2", "tar": "^6.1.15" } }, @@ -1649,9 +1650,9 @@ } }, "node_modules/@mongodb-js/saslprep": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@mongodb-js/saslprep/-/saslprep-1.3.0.tgz", - "integrity": "sha512-zlayKCsIjYb7/IdfqxorK5+xUMyi4vOKcFy10wKJYc63NSdKI8mNME+uJqfatkPmOSMMUiojrL58IePKBm3gvQ==", + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@mongodb-js/saslprep/-/saslprep-1.3.2.tgz", + "integrity": "sha512-QgA5AySqB27cGTXBFmnpifAi7HxoGUeezwo6p9dI03MuDB6Pp33zgclqVb6oVK3j6I9Vesg0+oojW2XxB59SGg==", "license": "MIT", "dependencies": { "sparse-bitfield": "^3.0.3" @@ -9863,9 +9864,9 @@ } }, "node_modules/mongodb-download-url": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/mongodb-download-url/-/mongodb-download-url-1.6.2.tgz", - "integrity": "sha512-89g7A+ktFQ6L3fcjV1ClCj5ftlMSuVy22q76N6vhuzxBdYcD2O0Wxt+i16SQ7BAD1QtOPsGpSQVL4bUtLvY6+w==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/mongodb-download-url/-/mongodb-download-url-1.7.0.tgz", + "integrity": "sha512-Dj9l3/MzvgAO+no7zaBIbQL0Ilsb0jo5Y8WijkB/sCnagoh3KgnN0Vxu5awglK/75QrEObduf9wa+U0fjxvYMw==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -9953,14 +9954,14 @@ } }, "node_modules/mongodb-runner": { - "version": "5.9.2", - "resolved": "https://registry.npmjs.org/mongodb-runner/-/mongodb-runner-5.9.2.tgz", - "integrity": "sha512-Pryl9atS+lXpKzL6Xy6gmLSfTfgzmUWfbcaQY3wJV6EjaAV14v0HrWajQNwmg//NQvoJ9zZU84izkFrG343vVg==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/mongodb-runner/-/mongodb-runner-6.0.0.tgz", + "integrity": "sha512-ijhBVCcTWRlauxp4UdIuktfPjEqlt8yOo0u7XyE99HdaITzL0BjS4x/dOyNzddewC6gw5wxH1uYx+Uo7GfeUnw==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@mongodb-js/mongodb-downloader": "^0.4.2", - "@mongodb-js/saslprep": "^1.3.0", + "@mongodb-js/mongodb-downloader": "^1.0.0", + "@mongodb-js/saslprep": "^1.3.2", "debug": "^4.4.0", "mongodb": "^6.9.0", "mongodb-connection-string-url": "^3.0.0", @@ -13566,9 +13567,9 @@ } }, "node_modules/to-buffer": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.2.1.tgz", - "integrity": "sha512-tB82LpAIWjhLYbqjx3X4zEeHN6M8CiuOEy2JY8SEQVdYRe3CCHOFaqrBW1doLDrfpWhplcW7BL+bO3/6S3pcDQ==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.2.2.tgz", + "integrity": "sha512-db0E3UJjcFhpDhAF4tLo03oli3pwl3dbnzXOUIlRKrp+ldk/VUxzpWYZENsw2SZiuBjHAk7DfB0VU7NKdpb6sw==", "dev": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index d89e6e70..bd887d31 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "globals": "^16.3.0", "knip": "^5.63.1", "mongodb": "^6.19.0", - "mongodb-runner": "^5.9.2", + "mongodb-runner": "^6.0.0", "openapi-types": "^12.1.3", "openapi-typescript": "^7.9.1", "prettier": "^3.6.2",