Skip to content

Commit

Permalink
chore(hook): update file permission to 755
Browse files Browse the repository at this point in the history
- Change file permissions for the hook file from `0o600` to `0o755`

Signed-off-by: Bo-Yi Wu <[email protected]>
  • Loading branch information
appleboy committed Feb 13, 2025
1 parent 62a3c8d commit c81ee10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ func (c *Command) InstallHook() error {
return err
}

return os.WriteFile(target, content, 0o600)
// Write the hook file with executable permissions (0o755)
return os.WriteFile(target, content, 0o755) //nolint:gosec
}

func (c *Command) UninstallHook() error {
Expand Down

0 comments on commit c81ee10

Please sign in to comment.