Skip to content

feat(git-node): select security release PRs from affectedVersions#1124

Open
RafaelGSS wants to merge 1 commit into
mainfrom
security-release-affected-versions
Open

feat(git-node): select security release PRs from affectedVersions#1124
RafaelGSS wants to merge 1 commit into
mainfrom
security-release-affected-versions

Conversation

@RafaelGSS

@RafaelGSS RafaelGSS commented Jul 23, 2026

Copy link
Copy Markdown
Member

git node release --prepare --security previously scanned all open PRs in nodejs-private/node-private (capped at 20), filtered only by --filterLabel, with no notion of release line, and matched CVEs via the legacy prURL field.

Dependency updates were ignored, and --security=../vulnerabilities.json did not resolve because it expected the repository root.

This change drives the whole flow from each entry's affectedVersions mapping.

`git node release --prepare --security` now selects the PRs to cherry-pick
from the per-line `affectedVersions` mapping of each report and dependency,
instead of scanning open PRs and filtering by label.

- `--security` accepts the path to vulnerabilities.json directly (or the
  security-release repository root).
- Reports and dependency updates are picked for the release line being
  prepared, resolving the owner/repo from the PR URL so both node-private
  and public node PRs are supported.
- CVE-ID trailers are taken from the matching report.
- Dependency updates now use the same `affectedVersions` schema as the
  reports, updating the generator and the `git node security` consumer.

Removed the `--filterLabel` option and the open PR scan.
@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 35.03185% with 102 lines in your changes missing coverage. Please review.
✅ Project coverage is 57.09%. Comparing base (f2f4ac5) to head (854cd91).

Files with missing lines Patch % Lines
lib/prepare_release.js 33.83% 88 Missing ⚠️
lib/prepare_security.js 17.64% 14 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1124      +/-   ##
==========================================
- Coverage   61.81%   57.09%   -4.73%     
==========================================
  Files          51       53       +2     
  Lines        9083    10150    +1067     
==========================================
+ Hits         5615     5795     +180     
- Misses       3468     4355     +887     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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