Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/build_documentation/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ runs:
echo "$(pwd)/hugo" >> $GITHUB_PATH

- name: Install Node and dependencies
uses: mongodb-labs/drivers-github-tools/node/setup@v2
uses: mongodb-labs/drivers-github-tools/node/setup@99b1cbd729bc83bf7fc74e1b2a97fffad3d65d7b # v3.1.1

- name: Build Docs
run: npm run build:docs -- --yes
Expand Down
8 changes: 0 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ updates:
directory: "/" # Location of package manifests
schedule:
interval: "monthly"
ignore:
# Interim rule: suppress patch-level pin PRs (e.g. v4 -> 4.37.3) for as long as
# we reference the floating v4 tag, which GitHub recommends so that CodeQL CLI
# updates and server-side flag changes are picked up automatically.
# REMOVE THIS RULE when NODE-7721 pins our actions to commit SHAs: dependabot
Comment thread
PavelSafronov marked this conversation as resolved.
Resolved
# must then be free to advance the pinned SHA within the v4 line.
- dependency-name: "github/codeql-action"
versions: ["4.x"]
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_and_commit_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
runs-on: 'ubuntu-latest'

steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: "Build documentation"
uses: ./.github/actions/build_documentation

- name: Open Pull Request
uses: peter-evans/create-pull-request@v8
uses: peter-evans/create-pull-request@3ffccacd46053766916f087ce41d627c0b8cf2d1 # v8.1.3
with:
title: 'docs: generate docs from latest main [skip-ci]'
delete-branch: true
2 changes: 1 addition & 1 deletion .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: ./.github/actions/build_documentation
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ jobs:
build-mode: none
steps:
- name: Checkout repository
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
uses: github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
Expand All @@ -44,6 +44,6 @@ jobs:
- docs

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
with:
category: "/language:${{matrix.language}}"
4 changes: 2 additions & 2 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Node and dependencies
uses: mongodb-labs/drivers-github-tools/node/setup@v3
uses: mongodb-labs/drivers-github-tools/node/setup@99b1cbd729bc83bf7fc74e1b2a97fffad3d65d7b # v3.1.1
- run: npm run check:dependencies
4 changes: 2 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.ref }}
- name: Install Node and dependencies
uses: mongodb-labs/drivers-github-tools/node/setup@v3
uses: mongodb-labs/drivers-github-tools/node/setup@99b1cbd729bc83bf7fc74e1b2a97fffad3d65d7b # v3.1.1
- run: npm version "$VERSION" --git-tag-version=false --allow-same-version
env:
VERSION: ${{ inputs.version }}
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/release-5.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
- id: release
uses: googleapis/release-please-action@v5
uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0
with:
target-branch: '5.x'

Expand All @@ -36,22 +36,22 @@ jobs:
environment: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: '5.x'

- name: Install Node and dependencies
uses: mongodb-labs/drivers-github-tools/node/setup@v3
uses: mongodb-labs/drivers-github-tools/node/setup@99b1cbd729bc83bf7fc74e1b2a97fffad3d65d7b # v3.1.1
with:
ignore_install_scripts: false

- name: Load version and package info
uses: mongodb-labs/drivers-github-tools/node/get_version_info@v3
uses: mongodb-labs/drivers-github-tools/node/get_version_info@99b1cbd729bc83bf7fc74e1b2a97fffad3d65d7b # v3.1.1
with:
npm_package_name: mongodb

- name: actions/compress_sign_and_upload
uses: mongodb-labs/drivers-github-tools/node/sign_node_package@v3
uses: mongodb-labs/drivers-github-tools/node/sign_node_package@99b1cbd729bc83bf7fc74e1b2a97fffad3d65d7b # v3.1.1
with:
aws_role_arn: ${{ secrets.AWS_ROLE_ARN }}
aws_region_name: us-east-1
Expand All @@ -67,13 +67,13 @@ jobs:
# only used for mongodb-client-encryption
- name: Augment SBOM and copy to release assets
if: ${{ '' != '' }}
uses: mongodb-labs/drivers-github-tools/sbom@v3
uses: mongodb-labs/drivers-github-tools/sbom@99b1cbd729bc83bf7fc74e1b2a97fffad3d65d7b # v3.1.1
with:
silk_asset_group: ''
sbom_file_name: sbom.json

- name: Generate authorized pub report
uses: mongodb-labs/drivers-github-tools/full-report@v3
uses: mongodb-labs/drivers-github-tools/full-report@99b1cbd729bc83bf7fc74e1b2a97fffad3d65d7b # v3.1.1
with:
release_version: ${{ env.package_version }}
product_name: mongodb
Expand All @@ -85,7 +85,7 @@ jobs:
evergreen_project: mongo-node-driver-next
evergreen_commit: ${{ env.commit }}

- uses: mongodb-labs/drivers-github-tools/upload-s3-assets@v3
- uses: mongodb-labs/drivers-github-tools/upload-s3-assets@99b1cbd729bc83bf7fc74e1b2a97fffad3d65d7b # v3.1.1
with:
version: ${{ env.package_version }}
product_name: mongodb
Expand All @@ -96,12 +96,12 @@ jobs:
environment: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: '5.x'

- name: Install Node and dependencies
uses: mongodb-labs/drivers-github-tools/node/setup@v3
uses: mongodb-labs/drivers-github-tools/node/setup@99b1cbd729bc83bf7fc74e1b2a97fffad3d65d7b # v3.1.1

- run: npm publish --provenance --tag=5x
if: ${{ needs.release_please.outputs.release_created }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
echo "Invalid alphaVersion string"
exit 1
fi
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Dispatch npm-publish workflow
env:
GH_TOKEN: ${{ github.token }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
release-nightly:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Node and dependencies
uses: mongodb-labs/drivers-github-tools/node/setup@v3
uses: mongodb-labs/drivers-github-tools/node/setup@99b1cbd729bc83bf7fc74e1b2a97fffad3d65d7b # v3.1.1
- id: build_nightly
run: npm run build:nightly
- if: ${{ steps.build_nightly.outputs.publish == 'yes' }}
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
- id: release
uses: googleapis/release-please-action@v5
uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0
with:
target-branch: 'main'

Expand All @@ -35,20 +35,20 @@ jobs:
environment: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Install Node and dependencies
uses: mongodb-labs/drivers-github-tools/node/setup@v3
uses: mongodb-labs/drivers-github-tools/node/setup@99b1cbd729bc83bf7fc74e1b2a97fffad3d65d7b # v3.1.1
with:
ignore_install_scripts: false

- name: Load version and package info
uses: mongodb-labs/drivers-github-tools/node/get_version_info@v3
uses: mongodb-labs/drivers-github-tools/node/get_version_info@99b1cbd729bc83bf7fc74e1b2a97fffad3d65d7b # v3.1.1
with:
npm_package_name: mongodb

- name: actions/compress_sign_and_upload
uses: mongodb-labs/drivers-github-tools/node/sign_node_package@v3
uses: mongodb-labs/drivers-github-tools/node/sign_node_package@99b1cbd729bc83bf7fc74e1b2a97fffad3d65d7b # v3.1.1
with:
aws_role_arn: ${{ secrets.AWS_ROLE_ARN }}
aws_region_name: us-east-1
Expand All @@ -64,13 +64,13 @@ jobs:
# only used for mongodb-client-encryption
- name: Augment SBOM and copy to release assets
if: ${{ '' != '' }}
uses: mongodb-labs/drivers-github-tools/sbom@v3
uses: mongodb-labs/drivers-github-tools/sbom@99b1cbd729bc83bf7fc74e1b2a97fffad3d65d7b # v3.1.1
with:
silk_asset_group: ''
sbom_file_name: sbom.json

- name: Generate authorized pub report
uses: mongodb-labs/drivers-github-tools/full-report@v3
uses: mongodb-labs/drivers-github-tools/full-report@99b1cbd729bc83bf7fc74e1b2a97fffad3d65d7b # v3.1.1
with:
release_version: ${{ env.package_version }}
product_name: mongodb
Expand All @@ -82,7 +82,7 @@ jobs:
evergreen_project: mongo-node-driver-next
evergreen_commit: ${{ env.commit }}

- uses: mongodb-labs/drivers-github-tools/upload-s3-assets@v3
- uses: mongodb-labs/drivers-github-tools/upload-s3-assets@99b1cbd729bc83bf7fc74e1b2a97fffad3d65d7b # v3.1.1
with:
version: ${{ env.package_version }}
product_name: mongodb
Expand All @@ -96,7 +96,7 @@ jobs:
environment: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Dispatch npm-publish workflow
if: ${{ needs.release_please.outputs.release_created }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release_notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ jobs:
fi

# checkout the HEAD ref from prNumber
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: refs/pull/${{ github.event_name == 'issue_comment' && github.event.issue.number || inputs.releasePr }}/head


# Setup Node.js and npm install
- name: Install Node and dependencies
uses: mongodb-labs/drivers-github-tools/node/setup@v3
uses: mongodb-labs/drivers-github-tools/node/setup@99b1cbd729bc83bf7fc74e1b2a97fffad3d65d7b # v3.1.1

# See: https://github.com/googleapis/release-please/issues/1274

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sbom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.ref }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Install Node and dependencies
uses: mongodb-labs/drivers-github-tools/node/setup@v3
uses: mongodb-labs/drivers-github-tools/node/setup@99b1cbd729bc83bf7fc74e1b2a97fffad3d65d7b # v3.1.1
with:
ignore_install_scripts: false

Expand Down
Loading