Skip to content

Commit

Permalink
Stricter permissions on schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Phoen committed Feb 8, 2024
1 parent 5bac2ee commit 8c0a6aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/generate-jsonschema/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func main() {
panic(fmt.Errorf("could not marshal schema to JSON: %w", err))
}

if err := os.WriteFile(fmt.Sprintf("./schemas/%s.json", t.name), schemaJSON, 0644); err != nil {
if err := os.WriteFile(fmt.Sprintf("./schemas/%s.json", t.name), schemaJSON, 0600); err != nil {
panic(fmt.Errorf("could not write schema: %w", err))
}
}
Expand Down

0 comments on commit 8c0a6aa

Please sign in to comment.