From 4f0316ac63c3c580df42ed83f5be70170d3cf278 Mon Sep 17 00:00:00 2001 From: "kayos@tcp.direct" Date: Sat, 6 Jul 2024 10:45:59 -0700 Subject: [PATCH] Security: Resolve gosec G300 CWE-276 file perm, fixes #164 --- internal/config/defaults.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/defaults.go b/internal/config/defaults.go index 1ff093b..71ab993 100644 --- a/internal/config/defaults.go +++ b/internal/config/defaults.go @@ -61,7 +61,7 @@ func gen(path string) { println(err.Error()) os.Exit(1) } - if err = os.WriteFile(path, dat, 0o640); err != nil { + if err = os.WriteFile(path, dat, 0o600); err != nil { println(err.Error()) os.Exit(1) }