Skip to content

pin js-yaml to >=3.15.1 to resolve Dependabot security failure - #1

Merged
lisagorewitdecker merged 2 commits into
masterfrom
copilot/fix-dependabot-github-actions-job
Aug 27, 2026
Merged

pin js-yaml to >=3.15.1 to resolve Dependabot security failure#1
lisagorewitdecker merged 2 commits into
masterfrom
copilot/fix-dependabot-github-actions-job

Conversation

Copilot AI commented Aug 27, 2026

Copy link
Copy Markdown

Dependabot was failing because jest@30.2.0 transitively requires js-yaml@3.14.2 via @istanbuljs/load-nyc-config@1.1.0 — a vulnerable version — but couldn't auto-upgrade it due to conflicting dependency constraints.

Changes

  • package.json: Adds a scoped npm overrides entry to force js-yaml to ^3.15.1 only within @istanbuljs/load-nyc-config, leaving eslint's js-yaml@4.x dependency untouched.
"overrides": {
  "@istanbuljs/load-nyc-config": {
    "js-yaml": "^3.15.1"
  }
}

3.15.1 is the earliest patched release per the advisory. The override is intentionally narrow to avoid downgrading eslint's js-yaml@4.x dependency.

Copilot AI changed the title [WIP] Fix failing GitHub Actions job Dependabot fix: pin js-yaml to >=3.15.1 to resolve Dependabot security failure Aug 27, 2026
@lisagorewitdecker lisagorewitdecker changed the title fix: pin js-yaml to >=3.15.1 to resolve Dependabot security failure pin js-yaml to >=3.15.1 to resolve Dependabot security failure Aug 27, 2026
@lisagorewitdecker
lisagorewitdecker marked this pull request as ready for review August 27, 2026 19:17
Copilot AI lite review requested due to automatic review settings August 27, 2026 19:17

Copilot AI left a comment

Copy link
Copy Markdown

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 a Dependabot security finding by forcing a patched js-yaml version in the transitive dependency chain used by Jest coverage tooling, using npm’s overrides mechanism.

Changes:

  • Add an npm overrides rule to require js-yaml ^3.15.1 under @istanbuljs/load-nyc-config.
  • Update package-lock.json to reflect the resolved dependency graph (including js-yaml resolution updates).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
package.json Introduces a scoped overrides entry targeting @istanbuljs/load-nyc-config’s js-yaml dependency.
package-lock.json Updates the resolved js-yaml versions in the lockfile to reflect the override and related resolution changes.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@lisagorewitdecker
lisagorewitdecker merged commit 5bb82df into master Aug 27, 2026
5 checks 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.

3 participants