From 62020539f425f13f85e39217fe11040997b6cab3 Mon Sep 17 00:00:00 2001 From: Akash Chandwani <3483277+akashchandwani@users.noreply.github.com> Date: Wed, 7 Sep 2022 18:36:31 +0530 Subject: [PATCH] Add pre-commit autoupdate command to README.md (#978) --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0b004594..5f35dca4 100644 --- a/README.md +++ b/README.md @@ -106,15 +106,16 @@ jobs: ``` repos: - repo: https://github.com/zricethezav/gitleaks - rev: v8.11.2 + rev: v8.12.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! +3. Auto-update the config to the latest repos' versions by executing `pre-commit autoupdate` +4. Install with `pre-commit install` +5. Now you're all set! ``` ➜ git commit -m "this commit contains a secret"