mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-08-31 04:38:11 +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:
@@ -187,6 +187,8 @@ describe('GET /api/security/compare', () => {
|
||||
expect(res.status).toBe(200);
|
||||
expect(res.body.scanA.id).toBe(baseline);
|
||||
expect(res.body.scanB.id).toBe(current);
|
||||
expect(res.body.scanA).toHaveProperty('image_digest');
|
||||
expect(res.body.scanB).toHaveProperty('image_digest');
|
||||
expect(res.body.added).toHaveLength(1);
|
||||
expect(res.body.added[0].vulnerability_id).toBe('CVE-2024-0003');
|
||||
expect(res.body.removed).toHaveLength(1);
|
||||
|
||||
Reference in New Issue
Block a user