diff --git a/.github/actions/build_documentation/action.yml b/.github/actions/build_documentation/action.yml index 17ea642294d..00ce8642d8a 100644 --- a/.github/actions/build_documentation/action.yml +++ b/.github/actions/build_documentation/action.yml @@ -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 diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 8640d5a6a71..beffbcded26 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -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 - # 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: diff --git a/.github/workflows/build_and_commit_docs.yml b/.github/workflows/build_and_commit_docs.yml index 8861e8066f1..afbda8c2907 100644 --- a/.github/workflows/build_and_commit_docs.yml +++ b/.github/workflows/build_and_commit_docs.yml @@ -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 diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml index 89f6bc1df0f..0a5b65804d2 100644 --- a/.github/workflows/build_docs.yml +++ b/.github/workflows/build_docs.yml @@ -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 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index b2082d56793..81a58672739 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -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 }} @@ -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}}" diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml index 8cec9fd6619..a7386f1353b 100644 --- a/.github/workflows/dependencies.yml +++ b/.github/workflows/dependencies.yml @@ -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 diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 9359127908e..fc9b0371a14 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -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 }} diff --git a/.github/workflows/release-5.x.yml b/.github/workflows/release-5.x.yml index 74fadb59402..af96a7b661b 100644 --- a/.github/workflows/release-5.x.yml +++ b/.github/workflows/release-5.x.yml @@ -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' @@ -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 @@ -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 @@ -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 @@ -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 }} diff --git a/.github/workflows/release-alpha.yml b/.github/workflows/release-alpha.yml index 01c49f22c38..7d6eb569b76 100644 --- a/.github/workflows/release-alpha.yml +++ b/.github/workflows/release-alpha.yml @@ -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 }} diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml index b9337e175ad..f1e1718bb5c 100644 --- a/.github/workflows/release-nightly.yml +++ b/.github/workflows/release-nightly.yml @@ -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' }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f6470530889..ec8fc4301b2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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' @@ -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 @@ -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 @@ -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 @@ -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 }} diff --git a/.github/workflows/release_notes.yml b/.github/workflows/release_notes.yml index 75819fdd60e..66e7b07319a 100644 --- a/.github/workflows/release_notes.yml +++ b/.github/workflows/release_notes.yml @@ -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 diff --git a/.github/workflows/sbom.yml b/.github/workflows/sbom.yml index 37316823aa9..25bbe19b6db 100644 --- a/.github/workflows/sbom.yml +++ b/.github/workflows/sbom.yml @@ -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