mirror of
https://github.com/ko-build/ko.git
synced 2026-06-18 20:14:08 +02:00
Clean filepath from zip before creating tempdir (#459)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user