Skip to content

Commit c6ac911

Browse files
committed
fix(scan): handle missing image tags by using image short ID
1 parent b40ee43 commit c6ac911

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/scan/scanner.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ def scan(self):
168168

169169
id_ = cont.short_id
170170
name = cont.name
171-
image = cont.image.tags[0] if cont.image.tags else ''
171+
image_id = cont.image.short_id
172+
image = cont.image.tags[0] if cont.image.tags else image_id.removeprefix('sha256:')
173+
172174
log_path = cont.attrs['LogPath']
173175

174176
# map host path to doku container path (used only for size calculation)

0 commit comments

Comments
 (0)