Skip to content

fix: resolve CI build failure due to OpenSSL 3 / webpack 4 incompatibility#6

Merged
ajijohn merged 2 commits into
mainfrom
copilot/fix-failing-github-actions-job
Jun 21, 2026
Merged

fix: resolve CI build failure due to OpenSSL 3 / webpack 4 incompatibility#6
ajijohn merged 2 commits into
mainfrom
copilot/fix-failing-github-actions-job

Conversation

Copilot AI commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

The "Build and Deploy" CI job was failing because Docusaurus 2.0.0-beta.6 (which bundles webpack 4) uses MD4 hashing — an algorithm dropped from Node.js 18's OpenSSL 3.

Changes

  • .github/workflows/deploy.yml: Added NODE_OPTIONS: --openssl-legacy-provider to both the Build documentation and Deploy to GitHub Pages steps, which both invoke webpack under the hood.
- name: Build documentation
  working-directory: sweep-docs-website
  env:
    NODE_OPTIONS: --openssl-legacy-provider
  run: yarn build

The long-term fix is upgrading to Docusaurus v2 stable / v3 (webpack 5, OpenSSL 3-compatible hashing); this PR unblocks CI with minimal blast radius.

The build step was failing with:
  Error: error:0308010C:digital envelope routines::unsupported

This occurs when webpack 4 (used by Docusaurus 2.0.0-beta.6) tries to use
MD4 hashing with Node.js 18's OpenSSL 3, which dropped support for legacy
algorithms.

Setting NODE_OPTIONS=--openssl-legacy-provider in the build and deploy steps
restores compatibility with the legacy OpenSSL provider needed by webpack 4.
Copilot AI changed the title [WIP] Fix failing GitHub Actions job Build and Deploy fix: resolve CI build failure due to OpenSSL 3 / webpack 4 incompatibility Jun 21, 2026
Copilot AI requested a review from ajijohn June 21, 2026 18:54
@ajijohn ajijohn marked this pull request as ready for review June 21, 2026 18:56
@ajijohn ajijohn merged commit dad4a72 into main Jun 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants