feat(investigate): add yarn (and pnpm) remediation path — currently npm-only
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 6
- Forks
- 2
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 17
Description
BLEnder's alert remediation only knows npm. JS alerts (Dependabot ecosystem npm_and_yarn) are mapped to npm (ECOSYSTEM_MAP in automerge_dependabot.py) and routed to action=npm_bump, whose only mechanism is:
npm audit fix --package-lock-only
That rewrites package-lock.json. yarn/pnpm repos don't have one, so on those repos remediation does nothing.
Since #119, the step skips gracefully instead of erroring (no more re-investigation loop) — but "skip" means the alert is never actually fixed. So on a yarn repo like mozilla/fxa, BLEnder can investigate, dismiss unaffected low/medium, and open advisories for affected alerts, but it cannot bump a yarn dependency.
Feature request
A yarn remediation path parallel to the existing npm and pip paths:
- direct deps: bump in
package.json+ regenerateyarn.lock - transitive deps:
resolutions(yarn) /overridesoverride + lockfile regen - ideally pnpm too (
pnpm.overrides)
Detect the package manager from the lockfile present and dispatch accordingly.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read automerge_dependabot.py, especially ECOSYSTEM_MAP and the action=npm_bump path, and trace how the existing npm and pip remediation paths dispatch. Done means detecting the lockfile package manager, supporting yarn direct and transitive remediation with lockfile regeneration, and adding pnpm overrides where supported; the issue names no tests to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, python
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100