Security: Resolve gosec G300 CWE-276 file perm, fixes #164
This commit is contained in:
parent
6bb33b7186
commit
4f0316ac63
|
@ -61,7 +61,7 @@ func gen(path string) {
|
||||||
println(err.Error())
|
println(err.Error())
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
if err = os.WriteFile(path, dat, 0o640); err != nil {
|
if err = os.WriteFile(path, dat, 0o600); err != nil {
|
||||||
println(err.Error())
|
println(err.Error())
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue