Skip to content

Commit

Permalink
debug: revert back permissions change
Browse files Browse the repository at this point in the history
  • Loading branch information
siddarthkay committed Feb 5, 2025
1 parent 808ddfd commit 5972f31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions params/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1113,8 +1113,8 @@ func (c *NodeConfig) Save() error {
}

configFilePath := filepath.Join(c.DataDir, "config.json")
// G306: Expect WriteFile permissions to be 0600 or less (gosec)
if err := ioutil.WriteFile(configFilePath, data, 0600); err != nil {
//nolint:gosec
if err := ioutil.WriteFile(configFilePath, data, os.ModePerm); err != nil {
return err
}

Expand Down

0 comments on commit 5972f31

Please sign in to comment.