Skip to content

feat(enrichment): dependency-diff + OSV.dev CVE analyzer - #1493

Merged
JSONbored merged 1 commit into
mainfrom
feat/enrichment-dependency-cve
Jun 26, 2026
Merged

feat(enrichment): dependency-diff + OSV.dev CVE analyzer#1493
JSONbored merged 1 commit into
mainfrom
feat/enrichment-dependency-cve

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

First real analyzer behind the REES /v1/enrich contract (#1473).

Parses changed manifests (package.json/requirements.txt/go.mod) in the PR diff for added/upgraded deps, queries OSV.dev (free, no key) for known CVEs in the new versions, and renders a severity-sorted, public-safe brief block the engine splices into the review — the heavy/external work the no-checkout claude --print reviewer can't do.

  • types.ts — shared EnrichRequest/ReviewBrief + dependency finding types
  • analyzers/dependency-scan.ts — manifest-diff parser + OSV query (injectable fetch for tests)
  • brief.ts — orchestrator: fan out analyzers under a time budget, best-effort/partial
  • render.ts — findings → promptSection/systemSuffix, severity-sorted, cap-bounded
  • 8 node:test units + a live OSV check (lodash@4.17.20 → real GHSA findings)

All inside review-enrichment/ — zero engine conflict. Closes #1474.

First real analyzer behind the REES /v1/enrich contract. Parses changed manifests
(package.json/requirements.txt/go.mod) in the PR diff for added/upgraded deps, queries
OSV.dev (free, no key) for known CVEs in the NEW versions, and renders a severity-sorted,
public-safe brief block the engine splices into the review — the heavy/external work the
no-checkout 'claude --print' reviewer can't do.

- types.ts: shared EnrichRequest/ReviewBrief + dependency finding types
- analyzers/dependency-scan.ts: manifest-diff parser + OSV query (injectable fetch)
- brief.ts: orchestrator — fan out analyzers under a time budget, best-effort/partial
- render.ts: findings → promptSection + systemSuffix, severity-sorted, cap-bounded
- 8 node:test units (parse/OSV-map/render/orchestrate incl. degraded path); live OSV verified

Closes #1474
@JSONbored
JSONbored merged commit bdc0a11 into main Jun 26, 2026
2 checks passed
@JSONbored
JSONbored deleted the feat/enrichment-dependency-cve branch June 26, 2026 12:27
@dosubot dosubot Bot added the size:L label Jun 26, 2026
@superagent-security

Copy link
Copy Markdown
Contributor

Superagent didn't find any vulnerabilities or security issues in this PR.

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.

feat(enrichment): dependency-diff + OSV.dev CVE analyzer

1 participant