Skip to content

build(deps): pin patched transitive dependency versions#27

Merged
dev-jodee merged 1 commit intomainfrom
fix/dependabot-transitive-remediation
Mar 27, 2026
Merged

build(deps): pin patched transitive dependency versions#27
dev-jodee merged 1 commit intomainfrom
fix/dependabot-transitive-remediation

Conversation

@dev-jodee
Copy link
Copy Markdown
Collaborator

Summary

  • Added root pnpm.overrides to pin patched transitive versions:
    • handlebars@^4.0.0 -> 4.7.9
    • picomatch@^2.0.0 -> 2.3.2
    • picomatch@^4.0.0 -> 4.0.4
  • Regenerated pnpm-lock.yaml with pnpm install --lockfile-only.
  • Resolved baseline Dependabot alert IDs targeted in this remediation: #30, #31, #33, #34, #35.

Test Plan

  • git status --short (clean baseline before edits)
  • gh api '/repos/solana-program/rewards/dependabot/alerts?state=open&per_page=100' --paginate --slurp -> 5 open alerts
  • jq extraction confirmed all 5 were transitive npm alerts with patched versions available
  • pnpm install --lockfile-only -> exit 0
  • rg -n "picomatch@2\.3\.1|picomatch@4\.0\.3|handlebars@4\.7\.8" pnpm-lock.yaml -> no matches
  • rg -n "picomatch@2\.3\.2|picomatch@4\.0\.4|handlebars@4\.7\.9" pnpm-lock.yaml -> matches present
  • pnpm audit --json -> exit 1 (remaining advisories outside this targeted remediation set)

Remaining Unresolved Alerts

  • Baseline Dependabot alerts in scope (#30, #31, #33, #34, #35): no unpatchable entries; each had a published patched version and was lockfile-resolved in this branch.
  • Additional npm advisories still reported by pnpm audit are outside this specific lockfile remediation set and require separate upstream dependency upgrade work.

Add pnpm overrides for handlebars and picomatch (major 2 and 4), then regenerate pnpm-lock.yaml to resolve patched versions.

Remaining unpatchable alerts in the current Dependabot remediation set: none.
@dev-jodee dev-jodee requested a review from amilz March 27, 2026 17:28
@dev-jodee dev-jodee merged commit b1b8a1f into main Mar 27, 2026
7 checks passed
@dev-jodee dev-jodee deleted the fix/dependabot-transitive-remediation branch March 27, 2026 17:36
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.

2 participants