mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-08-13 20:27:22 +00:00
feat(security): prefer digest identity in scan history (#1610)
Retain scans and History search by digest when available, keep imageRefLike for compatibility, and surface digests in compare.
This commit is contained in:
@@ -224,9 +224,18 @@ export interface ScanCompareVulnerability {
|
||||
suppression_reason?: string;
|
||||
}
|
||||
|
||||
/** One side of a scan comparison (baseline or current). */
|
||||
export interface ScanCompareSide {
|
||||
id: number;
|
||||
scanned_at: number;
|
||||
image_ref: string;
|
||||
image_digest?: string | null;
|
||||
total_vulnerabilities?: number;
|
||||
}
|
||||
|
||||
export interface ScanCompareResult {
|
||||
scanA: { id: number; scanned_at: number; image_ref: string; total_vulnerabilities?: number };
|
||||
scanB: { id: number; scanned_at: number; image_ref: string; total_vulnerabilities?: number };
|
||||
scanA: ScanCompareSide;
|
||||
scanB: ScanCompareSide;
|
||||
added: ScanCompareVulnerability[];
|
||||
removed: ScanCompareVulnerability[];
|
||||
unchanged: ScanCompareVulnerability[];
|
||||
|
||||
Reference in New Issue
Block a user