Skip to content

Commit

Permalink
chore(gosec): use 0600 permissions for the saved files
Browse files Browse the repository at this point in the history
Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
  • Loading branch information
rustatian committed May 21, 2024
1 parent e6bbec1 commit d85f7eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (b *Builder) Build(rrModule string) error { //nolint:gocyclo
return err
}

err = os.WriteFile(path.Join(b.rrTempPath, pluginsPath), buf.Bytes(), os.ModePerm)
err = os.WriteFile(path.Join(b.rrTempPath, pluginsPath), buf.Bytes(), 0600)
if err != nil {
return err
}
Expand Down

0 comments on commit d85f7eb

Please sign in to comment.