Skip to content

Commit

Permalink
gosec
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-ssvlabs committed Oct 8, 2024
1 parent ad23f27 commit 4cb66a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ssv/spectest/generate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func writeJson(name string, data []byte) {

file := filepath.Join(basedir, name+".json")
log.Printf("writing spec tests json to: %s\n", file)
if err := os.WriteFile(file, data, 0644); err != nil {
if err := os.WriteFile(file, data, 0400); err != nil {
panic(err.Error())
}
}
2 changes: 1 addition & 1 deletion types/spectest/generate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func writeJson(name string, data []byte) {

file := filepath.Join(basedir, name+".json")
log.Printf("writing spec tests json to: %s\n", file)
if err := os.WriteFile(file, data, 0644); err != nil {
if err := os.WriteFile(file, data, 0400); err != nil {
panic(err.Error())
}
}

0 comments on commit 4cb66a5

Please sign in to comment.