Add git hook that prevents key leaking
<!--IssueSummary start-->
<details>
<summary>
Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards.
</summary>
- [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=14126)
</details>
<!--IssueSummary end-->
Dev: https://dev.gitlab.org/gitlab/gitlab-ee/issues/342
Dmitriy
> https://gist.github.com/stevendanna/4db970716cabb8f5def4
> Based on Sytse's suggestion on: https://dev.gitlab.org/gitlab/blog-posts/issues/71#note_56942;
> "**can we add https://gist.github.com/stevendanna/4db970716cabb8f5def4 to the git hooks in EE?**"
cc/ @sytses @skyruler @dzaporozhets @JobV
issue