1
0
mirror of https://github.com/ko-build/ko.git synced 2025-03-17 20:47:51 +02:00

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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}