mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-02 07:04:48 +08:00
Revert usage of filepath.Clean (azure compatability issues)
This commit is contained in:
+3
-1
@@ -13,7 +13,9 @@ func readStream(filename string) (io.Reader, error) {
|
||||
if filename == "-" {
|
||||
return bufio.NewReader(os.Stdin), nil
|
||||
} else {
|
||||
return os.Open(filename) // nolint gosec
|
||||
// ignore CWE-22 gosec issue - that's more targetted for http based apps that run in a public directory,
|
||||
// and ensuring that it's not possible to give a path to a file outside thar directory.
|
||||
return os.Open(filename) // #nosec
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user