Add support for Quay's vulnerability tool
This commit is contained in:
parent
2d1df267dd
commit
3677947521
2 changed files with 4 additions and 1 deletions
|
@ -33,6 +33,7 @@ def _get_image_to_export(version):
|
|||
|
||||
images = (Image
|
||||
.select(candidates.c.docker_image_id, candidates.c.uuid, candidates.c.checksum)
|
||||
.distinct()
|
||||
.from_(candidates)
|
||||
.order_by(db_random_func())
|
||||
.tuples()
|
||||
|
@ -54,6 +55,7 @@ def _get_image_to_export(version):
|
|||
|
||||
images = (Image
|
||||
.select(candidates.c.docker_image_id, candidates.c.uuid, candidates.c.checksum, candidates.c.parent_docker_image_id, candidates.c.parent_storage_uuid)
|
||||
.distinct()
|
||||
.from_(candidates)
|
||||
.order_by(db_random_func())
|
||||
.tuples()
|
||||
|
@ -164,6 +166,7 @@ class SecurityWorker(Worker):
|
|||
'TarSum': img['storage_checksum'],
|
||||
'Path': uri
|
||||
}
|
||||
|
||||
if img['parent_docker_image_id'] is not None and img['parent_storage_uuid'] is not None:
|
||||
request['ParentID'] = img['parent_docker_image_id']+'.'+img['parent_storage_uuid']
|
||||
|
||||
|
|
Reference in a new issue