Explorar o código

Update pre-commit step to run gitleaks checks (#729)

* Fix pre-commit config.

* Debug output

* No debug and use redacted.

* Typo

* Add back staged.

* Update .pre-commit-hooks.yaml

* Update .pre-commit-hooks.yaml
Ben Randall %!s(int64=4) %!d(string=hai) anos
pai
achega
928c6a6043
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      .pre-commit-hooks.yaml

+ 1 - 1
.pre-commit-hooks.yaml

@@ -1,6 +1,6 @@
 - id: gitleaks
   name: Detect hardcoded secrets
   description: Detect hardcoded secrets using Gitleaks
-  entry: gitleaks
+  entry: gitleaks protect --verbose --redact --staged
   language: golang
   pass_filenames: false