Skip to content

Commit 06e7c03

Browse files
author
Amir Moualem
authored
Merge pull request #295 from snyk/fix/skopeo-without-destination
fix: assert file system path for skopeo copy is truthy
2 parents c112807 + e429957 commit 06e7c03

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/scanner/images/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ export async function pullImages(images: IPullableImage[]): Promise<IPullableIma
1212

1313
for (const image of images) {
1414
const {imageName, fileSystemPath} = image;
15+
if (!fileSystemPath) {
16+
continue;
17+
}
18+
1519
try {
1620
await skopeoCopy(imageName, fileSystemPath);
1721
pulledImages.push(image);

0 commit comments

Comments
 (0)