fix: nosec for potential file inclusion via variable
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
a1b87ba90e
commit
ccf3f3dc5f
@ -52,6 +52,7 @@ func Write(cnf *Config, configFile string) error {
|
||||
}
|
||||
}
|
||||
|
||||
/* #nosec */
|
||||
f, err := os.Create(configFile)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Failed not create config file %v: %v", configFile, err)
|
||||
|
Reference in New Issue
Block a user