Block secrets from the VCS
Secrets can be blocked from reaching shared repositories with the help of ggshield, the GitGuardian CLI, and through the setup of pre-receive git hooks.
This is only applicable for organizations running their own GitHub, GitHub Enterprise, or GitLab instances. If this is your case, the VCS site administrator can create and remove pre-receive hooks for your entire organization and its associated repositories.
What is a pre-receive hook?
Pre-receive hooks are configured once for the VCS instance and are the most effective tool to prevent secrets from reaching your codebase.