Add pre-commit autoupdate command to README.md (#978)

This commit is contained in:
Akash Chandwani authored and GitHub committed 2022-09-07 08:06:31 -05:00
1 parent c8681e4858
commit 62020539f4
1 file changed
+4 -3
+4 -3
View File
@@ -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"