Skip to main content

The GDS Way and its content is intended for internal use by the GDS and CO CDIO communities.

Git Pre-commit Hooks

Git hooks are scripts that Git executes before or after events such as commit, push, and receive. Pre-commit hooks are useful in detecting secrets automatically before developers commit work locally on their machines.

The CDIO Cyber Security team has recommended a pre-commit git hook called Detect Secrets for preventing secrets being commited to git.

Further guidance

This page was last reviewed on 13 July 2021. It needs to be reviewed again on 13 January 2022 by the page owner #gds-way .
This page was set to be reviewed before 13 January 2022 by the page owner #gds-way. This might mean the content is out of date.