pin js-yaml to >=3.15.1 to resolve Dependabot security failure - #1
Merged
lisagorewitdecker merged 2 commits intoAug 27, 2026
Merged
Conversation
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
marked this pull request as ready for review
August 27, 2026 19:17
There was a problem hiding this comment.
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
overridesrule to requirejs-yaml^3.15.1under@istanbuljs/load-nyc-config. - Update
package-lock.jsonto reflect the resolved dependency graph (includingjs-yamlresolution 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
approved these changes
Aug 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dependabot was failing because
jest@30.2.0transitively requiresjs-yaml@3.14.2via@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 npmoverridesentry to forcejs-yamlto^3.15.1only within@istanbuljs/load-nyc-config, leavingeslint'sjs-yaml@4.xdependency untouched.3.15.1is the earliest patched release per the advisory. The override is intentionally narrow to avoid downgrading eslint'sjs-yaml@4.xdependency.