mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-28 10:28:36 +00:00
fix: gosec G304 file inclusion error (#3916)
Part of KubeCon EU 2022 Bugbash Signed-off-by: Dhaval Shah <30974879+dhavalgshah@users.noreply.github.com>
This commit is contained in:
parent
87ac548563
commit
4d0d719735
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ func Command() *cobra.Command {
|
|||
}
|
||||
var input interface{}
|
||||
if filename != "" {
|
||||
f, err := ioutil.ReadFile(filename)
|
||||
f, err := ioutil.ReadFile(filepath.Clean(filename))
|
||||
if err != nil {
|
||||
return fmt.Errorf("error opening input file: %w", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue