Skip to content

chore(deps): clear Dependabot security alerts#385

Merged
mmcky merged 3 commits into
mainfrom
chore/dependabot-security-fixes
May 14, 2026
Merged

chore(deps): clear Dependabot security alerts#385
mmcky merged 3 commits into
mainfrom
chore/dependabot-security-fixes

Conversation

@mmcky
Copy link
Copy Markdown
Contributor

@mmcky mmcky commented May 14, 2026

Summary

Resolves all 13 open Dependabot alerts on main. All affected packages are transitive dev/build-time dependencies — no runtime or shipped theme code is changed.

  • Ran npm audit fix to bump transitive lockfile entries (fast-uri, follow-redirects, lodash, node-forge, picomatch, svgo, etc.)
  • Bumped two direct devDependencies whose patched versions required a major bump:
  • npm audit now reports 0 vulnerabilities
  • npm run build succeeds; output artifacts unchanged in size

Test plan

  • CI tests.yml passes (Playwright visual regression suite)
  • CI ci.yml passes
  • Confirm Dependabot alerts auto-close once merged to main

🤖 Generated with Claude Code

Bumps transitive dev dependencies via npm audit fix and upgrades two
direct devDependencies whose patched versions required a major bump:

- css-minimizer-webpack-plugin: ^7.0.2 → ^8.0.0 (clears serialize-javascript
  RCE/DoS advisories GHSA-5c6j-r48x-rmvq, GHSA-qj8w-gfj5-8c6v)
- sass: ^1.94.2 → ^1.99.0 (clears immutable prototype-pollution
  advisory GHSA-wf6x-7x77-mvgw)

`npm audit` now reports 0 vulnerabilities. All affected packages are
dev/build-time only; no runtime/shipped code is changed.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 14, 2026 00:57
…ment

css-minimizer-webpack-plugin@8 and serialize-javascript@7 require Node
>= 20. Bumps sphinx-theme-builder's nodeenv pin from 18.18.0 to 20.18.0
and the matching setup-node version across CI/docs/update-snapshots
workflows. Without this, the editable install fails with
'ReferenceError: crypto is not defined' inside serialize-javascript.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates Node.js build-time dependencies (primarily via npm audit fix) to clear Dependabot security alerts affecting the theme’s asset build toolchain (webpack/Sass/CSS minification), without changing shipped theme source.

Changes:

  • Bump direct devDependencies: css-minimizer-webpack-plugin to ^8.0.0 and sass to ^1.99.0.
  • Refresh package-lock.json to incorporate patched transitive dependency versions and remove reported npm audit vulnerabilities.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.

File Description
package.json Updates direct build tool devDependencies to patched versions.
package-lock.json Updates transitive dependency graph/versions to remove security advisories.

Comment thread package.json
@codecov
Copy link
Copy Markdown

codecov Bot commented May 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@50be9e4). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #385   +/-   ##
=======================================
  Coverage        ?   47.75%           
=======================================
  Files           ?        2           
  Lines           ?      423           
  Branches        ?        0           
=======================================
  Hits            ?      202           
  Misses          ?      221           
  Partials        ?        0           
Flag Coverage Δ
pytests 47.75% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Completes the Node 20 migration flagged by Copilot review on PR #385.
Aligns .nvmrc, CONTRIBUTING.md, and docs/developer/setup.md with the
sphinx-theme-builder node-version pin and the CI setup-node version.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 14, 2026

🎭 Visual Regression Test Results

passed  45 passed
skipped  1 skipped

Details

stats  46 tests across 1 suite
duration  59.3 seconds
commit  75163ef

Skipped tests

mobile-chrome › theme.spec.ts › Theme Features › f-string interpolation styling

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 14, 2026

@mmcky mmcky merged commit 9641215 into main May 14, 2026
10 checks passed
@mmcky mmcky deleted the chore/dependabot-security-fixes branch May 14, 2026 01:17
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