Clean filepath from zip before creating tempdir (#459)

This commit is contained in:
Jason Hall
2021-10-01 14:20:21 -04:00
committed by GitHub
parent b9cd759f25
commit 5ac3ef93f7
+1 -1
View File
@@ -94,7 +94,7 @@ If the image was not built using ko, or if it was built without embedding depend
continue
}
tmp, err := ioutil.TempFile("", filepath.Base(h.Name))
tmp, err := ioutil.TempFile("", filepath.Base(filepath.Clean(h.Name)))
if err != nil {
return err
}