Security: Resolve gosec G300 CWE-276 file perm, fixes #164

This commit is contained in:
kayos@tcp.direct 2024-07-06 10:45:59 -07:00
parent 6bb33b7186
commit 4f0316ac63
No known key found for this signature in database
GPG Key ID: 4B841471B4BEE979
1 changed files with 1 additions and 1 deletions

View File

@ -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)
} }