Findings
Retrieve full findings, associate them with a scan, and preserve provider evidence and local review state.
Read project findings
const findings = await client.findings.list(projectRef);This returns the current full project findings store, ordered by updated_at descending. There is no pagination, scan filter, updated-since option, or API-key individual-finding method in the SDK.
The SDK preserves wire fields and raw string values. Relevant data includes:
| Fields | Use |
|---|---|
id, project_id, task_id, last_run_id | Finding identity and provenance |
title, description, remediation | Provider-owned finding content |
severity_rating, cvss_score, cvss_vector, severity_rationale | Severity and scoring evidence |
cwe_ids, affected_components | All categories and affected components |
steps_to_reproduce, markdown | Reproduction and evidence text |
confirmation_status | Current provider review state |
| First-seen, confirmation, run, resolution, creation and update timestamps | Preserve original meaning, nulls, and timezone strings |
Affected components may be names rather than URLs. The API has no dedicated affected_url or poc_url; do not invent one from the first project target.
Associate details with a specific scan
const scan = await client.scans.get(scanRef);
const findings = await client.findings.list(projectRef);
const ids = new Set(scan.findings?.map((entry) => entry.id));
const scanFindings = findings.filter((entry) => ids.has(entry.id));The scan supplies associated finding IDs and summaries; the project list supplies full detail. Curation can change these associations later, so this is not an immutable historical snapshot. Persist received evidence if your application needs historical fidelity.
Preserve local triage
Use the provider finding ID as the external reference in your application, scoped to the appropriate customer and source. Update provider content separately from your own assignee, comments, accepted-risk decisions, treatment plans, and evidence links.
Known severity strings include Critical, High, Medium, Low, and Informational. Map unknown values to an explicit unknown/review state while retaining the raw string. The SDK does not silently normalize severity or merge findings by title, URL, or CWE.
Confirmation statuses such as review, valid, rejected, resolved, and accepted_risk have distinct meanings. A provider status alone does not prove automated verification: users can edit it. Empty findings, missing rows, and failed scans must not trigger blanket resolution.
Where available, compare finding.last_run_id with a settled task run's run_id, checking the same project and task_id. The task-run database id is different. A negative outcome with provider resolved, or confirmed_finding with review/valid, can supply evidence for your application policy when compared with saved history. Missing evidence should remain a review case.
Last updated