Commit bc61b0e
committed
fix(ci): use gitleaks dir mode so pre-commit catches secrets in CI
The default gitleaks pre-commit hook entry uses `gitleaks git --pre-commit
--staged`, which scans staged git changes. In CI, `pre-commit run
--all-files` has no staged files, so gitleaks scans 0 commits and always
passes — even when secrets are present in the codebase.
Switch to `gitleaks dir --redact --verbose` which scans actual file
contents. This works correctly both during local `git commit` hooks and
in CI with `--all-files`.
Signed-off-by: svc-bionemo <267129667+svc-bionemo@users.noreply.github.com>1 parent 8593a34 commit bc61b0e
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
0 commit comments