Skip to content

Commit

Permalink
build: fix gosec warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lzap committed Sep 24, 2024
1 parent 7940cb2 commit f5091ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/oscap/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func generateJson(dir, datastreamDistro, profileDescription, profile string) {
}
// hack to add an empty line at the end of the file for nicer diffs
bArray = append(bArray, '\n')
err = os.WriteFile(path.Join(dir, "customizations.json"), bArray, os.ModePerm)
err = os.WriteFile(path.Join(dir, "customizations.json"), bArray, 0600)
if err != nil {
panic(err)
}
Expand Down Expand Up @@ -264,7 +264,7 @@ func main() {
distro.Distribution.Name,
"oscap",
filepath.Base(string(profile)))
err := os.MkdirAll(dir, os.ModePerm)
err := os.MkdirAll(dir, 0750)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit f5091ef

Please sign in to comment.