Skip to content

Commit

Permalink
fix: make Write create files without the executable bit set (#3255)
Browse files Browse the repository at this point in the history
YAML files shouldn't be created with the executable bit turned on.

Signed-off-by: Lior Okman <lior.okman@sap.com>
  • Loading branch information
liorokman authored Apr 24, 2024
1 parent aacf359 commit 19032b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/utils/file/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

func Write(data string, filepath string) error {
file, err := os.OpenFile(filepath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0755)
file, err := os.OpenFile(filepath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644)
if err != nil {
return err
}
Expand Down

0 comments on commit 19032b0

Please sign in to comment.