Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
czarcas7ic committed Sep 26, 2024
1 parent ca87287 commit de70a7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ func testnetify(ctx *Context, testnetAppCreator types.AppCreator, db dbm.DB, tra
}

emptyAddrBook := []byte("{}")
if err := os.WriteFile(addrBookPath, emptyAddrBook, 0644); err != nil {
if err := os.WriteFile(addrBookPath, emptyAddrBook, 0o644); err != nil {

Check failure on line 761 in server/start.go

View workflow job for this annotation

GitHub Actions / Analyze

G306: Expect WriteFile permissions to be 0600 or less (gosec)
return nil, fmt.Errorf("failed to create empty addrbook.json: %w", err)
}

Expand Down

0 comments on commit de70a7e

Please sign in to comment.