Skip to content

chore: fix dependabot alerts#21

Open
jonathannorris wants to merge 3 commits intomainfrom
fix/dependabot-alerts
Open

chore: fix dependabot alerts#21
jonathannorris wants to merge 3 commits intomainfrom
fix/dependabot-alerts

Conversation

@jonathannorris
Copy link
Copy Markdown
Member

Summary

  • Bump semantic-release from ^19 to ^24 — v24 pulls in @semantic-release/npm@12 which depends on npm@10, resolving bundled vulnerable versions of tar and minimatch
  • Add overrides for handlebars >= 4.7.9, picomatch >= 2.3.2, flatted >= 3.4.2, and glob-promise >= 6.0.7 to force patched transitive deps
  • glob-promise >= 6.0.7 drops the npm-install-peers dependency that was pulling in npm@6 with bundled vulnerable tar and minimatch

Resolves all 14 open Dependabot alerts (#90, #91, #93, #94, #95, #97, #99, #101, #102, #103, #105, #106, #108, #109).

Copilot AI review requested due to automatic review settings March 31, 2026 19:22
@jonathannorris jonathannorris requested a review from a team as a code owner March 31, 2026 19:22
Copy link
Copy Markdown

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 addresses Dependabot security alerts by updating release tooling and forcing patched transitive dependency versions via npm overrides.

Changes:

  • Bump semantic-release from ^19 to ^24.2.9.
  • Add npm overrides to require patched versions of handlebars, picomatch, flatted, and glob-promise.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"eslint": "^7.32.0",
"prettier": "^2.8.8",
"semantic-release": "^19.0.3",
"semantic-release": "^24.2.9",
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

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

semantic-release@24.2.9 requires Node >=20.8.1 (per package-lock), but the repo currently has no engines constraint and the CI/release workflows run Node 15. This will cause npm ci / npx semantic-release to fail. Please either (a) raise the project’s supported Node version (add an engines.node range and update workflows accordingly) or (b) keep semantic-release on a version compatible with the existing Node runtime.

Suggested change
"semantic-release": "^24.2.9",
"semantic-release": "^17.0.0",

Copilot uses AI. Check for mistakes.
Copilot AI review requested due to automatic review settings March 31, 2026 19:45
Copy link
Copy Markdown

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

Copilot reviewed 5 out of 6 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -0,0 +1 @@
legacy-peer-deps=true
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

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

Committing legacy-peer-deps=true disables npm's peer dependency resolution/validation for all installs, which can mask incompatible dependency graphs and make future upgrades harder. Prefer fixing the underlying peer dependency conflicts, or scope this to CI only (e.g., use npm ci --legacy-peer-deps in workflows) and document why it’s needed if it must remain.

Suggested change
legacy-peer-deps=true

Copilot uses AI. Check for mistakes.
Comment on lines 16 to 18
uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v1
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

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

This workflow still uses deprecated actions/checkout@v1 and actions/setup-node@v1. These older JS actions run on retired Node runtimes and can start failing as GitHub disables them; please upgrade to the current major versions (e.g., checkout v4 / setup-node v4) while updating the runner/Node version.

Suggested change
uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4

Copilot uses AI. Check for mistakes.
Comment on lines 16 to 20
strategy:
matrix:
node-version: [15.x]
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

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

Since this job is now targeting Node 20, please also update the workflow’s Node-related actions (notably actions/setup-node@v1, and ideally actions/checkout@v2) to their current majors. The v1/v2 action generations run on retired Node runtimes and are at risk of being disabled by GitHub, causing CI failures.

Copilot uses AI. Check for mistakes.
Comment on lines 13 to +16
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 15
node-version: 20
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

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

actions/setup-node@v1 is deprecated and runs on a retired Node runtime. With this workflow moving to Node 20, upgrade to the current major of setup-node (and consider bumping checkout as well) to avoid the action being disabled and breaking the benchmark workflow.

Copilot uses AI. Check for mistakes.
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.

3 participants