From 237b03af18d6e81d6e4acefe265aa27e49b8a1cc Mon Sep 17 00:00:00 2001 From: foolioo <28758375+foolioo@users.noreply.github.com> Date: Wed, 30 Mar 2022 01:05:28 +0000 Subject: [PATCH] doc gitleaks-docker pre-commit hook (#819) relates to #818 --- README.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5739393f..a87dcd41 100644 --- a/README.md +++ b/README.md @@ -62,13 +62,15 @@ make build ### Pre-Commit 1. Install pre-commit from https://pre-commit.com/#install 2. Create a `.pre-commit-config.yaml` file at the root of your repository with the following content: -``` -repos: - - repo: https://github.com/zricethezav/gitleaks - rev: v8.2.0 - hooks: - - id: gitleaks -``` + ``` + repos: + - repo: https://github.com/zricethezav/gitleaks + rev: v8.2.0 + hooks: + - id: gitleaks + ``` + for a [native execution of GitLeaks](https://github.com/zricethezav/gitleaks/releases) or use the [`gitleaks-docker` pre-commit ID](https://github.com/zricethezav/gitleaks/blob/master/.pre-commit-hooks.yaml) for executing GitLeaks using the [official Docker images](#docker) + 3. Install with `pre-commit install` 4. Now you're all set! ```