feat(enrichment): dependency-diff + OSV.dev CVE analyzer - #1493
Merged
Conversation
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
Contributor
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First real analyzer behind the REES
/v1/enrichcontract (#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-checkoutclaude --printreviewer can't do.types.ts— sharedEnrichRequest/ReviewBrief+ dependency finding typesanalyzers/dependency-scan.ts— manifest-diff parser + OSV query (injectable fetch for tests)brief.ts— orchestrator: fan out analyzers under a time budget, best-effort/partialrender.ts— findings →promptSection/systemSuffix, severity-sorted, cap-boundednode:testunits + a live OSV check (lodash@4.17.20 → real GHSA findings)All inside
review-enrichment/— zero engine conflict. Closes #1474.