Skip to content

Commit

Permalink
fix(write-back): Ensure directory permissions are secure
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirianni committed May 20, 2024
1 parent 9b75c05 commit 4034f80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ func (a *Action) WriteBack() error {
// nil if the directory already exists. Returns an error if something
// goes wrong.
dir, _ := filepath.Split(path)
if err := os.MkdirAll(dir, 0755); err != nil {
if err := os.MkdirAll(dir, 0750); err != nil {
return fmt.Errorf("create directory %s: %w", dir, err)
}

Expand Down

0 comments on commit 4034f80

Please sign in to comment.