8000 Updates hooks section to mention rulesets · github/platform-samples@95663e2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 95663e2

Browse files
authored
Updates hooks section to mention rulesets
1 parent 591cef7 commit 95663e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pre-receive-hooks/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Pre-receive hooks
22

3+
> [!IMPORTANT]
4+
> Many of the hooks mentioned in this article can now be natively implemented through GitHub Enterprise's [Rulesets](https://docs.github.com/en/enterprise-server@3.16/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/about-rulesets) and [Secret Protection](https://docs.github.com/en/enterprise-server@3.16/code-security/secret-scanning/introduction/about-secret-scanning) (requires GitHub Advanced Security) features. With it, you have the same effect as hooks, but in a more controlled, auditable and performant fashion, so we highly recommend looking at these before you implement pre-receive hooks.
5+
36
### tl;dr
47

58
This directory contains examples for [pre-receive hooks ](https://help.github.com/enterprise/user/articles/working-with-pre-receive-hooks/) which are a [GitHub Enterprise feature](https://developer.github.com/v3/enterprise/pre_receive_hooks/) to block unwanted commits before they even reach your repository.

0 commit comments

Comments
 (0)
0