Skip to content

Commit

Permalink
Security: Resolve gosec G300 CWE-276 file perm, fixes #164
Browse files Browse the repository at this point in the history
  • Loading branch information
yunginnanet committed Jul 6, 2024
1 parent 6bb33b7 commit 4f0316a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/config/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

1 comment on commit 4f0316a

@muzucode
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed working, thanks.

Please sign in to comment.