mirror of
https://github.com/goharbor/harbor
synced 2024-09-20 14:35:34 +00:00
Remove old version scan reports of trivy (#16262)
Signed-off-by: He Weiwei <hweiwei@vmware.com>
This commit is contained in:
parent
210921cd81
commit
4ec1d07c6f
2
make/migrations/postgresql/0071_2.4.2_schema.up.sql
Normal file
2
make/migrations/postgresql/0071_2.4.2_schema.up.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
/* Remove old version scan reports of trivy */
|
||||
DELETE FROM scan_report WHERE mime_type='application/vnd.scanner.adapter.vuln.report.harbor+json; version=1.0' AND registration_uuid IN (SELECT uuid FROM scanner_registration WHERE name='Trivy' AND immutable='true');
|
Loading…
Reference in New Issue
Block a user