Files
gohoarder/frontend/src/lib/report.ts
T
lukaszraczylo 8b4d4746df feat(ui): show advisory aliases and offer a bypass for each id
The vulnerability table lists the other ids of a finding. The expanded
row links to the bypass form for the id and for each alias.
2026-11-24 01:39:54 +00:00

32 lines
962 B
TypeScript

import type { ScannerResult } from '@/lib/inspectors'
import type { AppliedBypass, ApiVerdict, VulnerabilityCounts } from '@/stores/packages'
export interface VulnerabilityEntry {
id: string
severity: string
title: string
description: string
references: string[]
fixed_in: string
detected_by?: string[]
aliases?: string[]
bypassed: boolean
bypass?: { id: string; reason: string; created_by: string; expires_at: string }
}
/** Response of GET /api/packages/{registry}/{name}/{version}/vulnerabilities. */
export interface PackageReport {
package?: { release_version?: string }
scanned: boolean
scanner?: string
scanned_at?: string
status: string
message?: string
vulnerabilities: VulnerabilityEntry[]
vulnerability_count: number
severity_counts?: VulnerabilityCounts
bypassed_count?: number
scanners: ScannerResult[]
decision: { verdict: ApiVerdict; blocked: boolean; reason: string; bypass: AppliedBypass | null }
}