-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into uri-validate-less
- Loading branch information
Showing
202 changed files
with
6,113 additions
and
5,429 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,3 @@ | |
lib | ||
test/disabled | ||
!etc/docs | ||
|
||
test/explicit-resource-management |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "monthly" | ||
ignore: | ||
# chai is esmodule only. | ||
- dependency-name: "chai" | ||
versions: [">=5.0.0"] | ||
# sinon-chai 4.x+ supports chai 5.x+. | ||
- dependency-name: "sinon-chai" | ||
versions: [">=4.0.0"] | ||
# nyc is Node18+ only starting on nyc@16.x. | ||
- dependency-name: "nyc" | ||
versions: [">=16.0.0"] | ||
# we ignore TS as a part of quarterly dependency updates. | ||
- dependency-name: "typescript" | ||
# stay on the supported major version of gcp-metadata | ||
- dependency-name: "gcp-metadata" | ||
versions: [">=6.0.0"] | ||
|
||
versioning-strategy: increase | ||
allow: | ||
- dependency-type: "development" | ||
|
||
groups: | ||
development-dependencies: | ||
dependency-type: "development" | ||
applies-to: version-updates | ||
update-types: | ||
- "minor" | ||
- "patch" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
on: | ||
push: | ||
branches: [6.8] | ||
workflow_dispatch: {} | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
id-token: write | ||
|
||
name: release-68 | ||
|
||
jobs: | ||
release_please: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
release_created: ${{ steps.release.outputs.release_created }} | ||
steps: | ||
- id: release | ||
uses: googleapis/release-please-action@v4 | ||
with: | ||
target-branch: 6.8 | ||
|
||
build: | ||
needs: [release_please] | ||
name: "Perform any build or bundling steps, as necessary." | ||
uses: ./.github/workflows/build.yml | ||
|
||
ssdlc: | ||
needs: [release_please, build] | ||
permissions: | ||
# required for all workflows | ||
security-events: write | ||
id-token: write | ||
contents: write | ||
environment: release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Node and dependencies | ||
uses: mongodb-labs/drivers-github-tools/node/setup@v2 | ||
with: | ||
ignore_install_scripts: false | ||
|
||
- name: Load version and package info | ||
uses: mongodb-labs/drivers-github-tools/node/get_version_info@v2 | ||
with: | ||
npm_package_name: mongodb | ||
|
||
- name: actions/compress_sign_and_upload | ||
uses: mongodb-labs/drivers-github-tools/node/sign_node_package@v2 | ||
with: | ||
aws_role_arn: ${{ secrets.AWS_ROLE_ARN }} | ||
aws_region_name: us-east-1 | ||
aws_secret_id: ${{ secrets.AWS_SECRET_ID }} | ||
npm_package_name: mongodb | ||
dry_run: ${{ needs.release_please.outputs.release_created == '' }} | ||
|
||
- name: Copy sbom file to release assets | ||
shell: bash | ||
if: ${{ '' == '' }} | ||
run: cp sbom.json ${{ env.S3_ASSETS }}/sbom.json | ||
|
||
# only used for mongodb-client-encryption | ||
- name: Augment SBOM and copy to release assets | ||
if: ${{ '' != '' }} | ||
uses: mongodb-labs/drivers-github-tools/sbom@v2 | ||
with: | ||
silk_asset_group: '' | ||
sbom_file_name: sbom.json | ||
|
||
- name: Generate authorized pub report | ||
uses: mongodb-labs/drivers-github-tools/full-report@v2 | ||
with: | ||
release_version: ${{ env.package_version }} | ||
product_name: mongodb | ||
sarif_report_target_ref: 6.8 | ||
third_party_dependency_tool: n/a | ||
dist_filenames: artifacts/* | ||
token: ${{ github.token }} | ||
sbom_file_name: sbom.json | ||
evergreen_project: mongo-node-driver-next | ||
evergreen_commit: ${{ env.commit }} | ||
|
||
- uses: mongodb-labs/drivers-github-tools/upload-s3-assets@v2 | ||
with: | ||
version: ${{ env.package_version }} | ||
product_name: mongodb | ||
dry_run: ${{ needs.release_please.outputs.release_created == '' }} | ||
|
||
publish: | ||
needs: [release_please, ssdlc, build] | ||
environment: release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Node and dependencies | ||
uses: mongodb-labs/drivers-github-tools/node/setup@v2 | ||
|
||
# Just picking a string to put here so that releases from this branch are not marked "latest", | ||
# we should go and rm-dist-tag after this is published, no reason to keep it tagged. | ||
- run: | | ||
npm publish --provenance --tag=tag-for-publishing-older-releases | ||
npm dist-tag rm mongodb tag-for-publishing-older-releases | ||
if: ${{ needs.release_please.outputs.release_created }} | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
Oops, something went wrong.