Skip to content

Commit

Permalink
Clean filepath from zip before creating tempdir
Browse files Browse the repository at this point in the history
  • Loading branch information
imjasonh committed Oct 1, 2021
1 parent 688ca47 commit 47a4df5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/commands/deps.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 47a4df5

Please sign in to comment.