mozilla / mozilla/blender

feat(investigate): add yarn (and pnpm) remediation path — currently npm-only

Open
#122 0 comments 0 reactions 0 assignees View on GitHub

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 + regenerate yarn.lock
  • transitive deps: resolutions (yarn) / overrides override + 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.