Răsfoiți Sursa

use official docker image as pre-commit hook (#818)

* use official docker image as pre-commit hook

* Update .pre-commit-hooks.yaml

* Update .pre-commit-hooks.yaml

* Update .pre-commit-hooks.yaml

* Update .pre-commit-hooks.yaml

* Update .pre-commit-hooks.yaml
foolioo 4 ani în urmă
părinte
comite
1ddc924a67
1 a modificat fișierele cu 5 adăugiri și 0 ștergeri
  1. 5 0
      .pre-commit-hooks.yaml

+ 5 - 0
.pre-commit-hooks.yaml

@@ -4,3 +4,8 @@
   entry: gitleaks protect --verbose --redact --staged
   language: golang
   pass_filenames: false
+- id: gitleaks-docker
+  name: Detect hardcoded secrets
+  description: Detect hardcoded secrets using Gitleaks
+  entry: zricethezav/gitleaks:v8.5.2 protect --verbose --redact --staged
+  language: docker_image