From 43a90bf2f4c0851bbbb827f26e14aa1736a0ef72 Mon Sep 17 00:00:00 2001 From: granitosaurus Date: Sat, 22 Jul 2023 16:26:58 +0700 Subject: [PATCH] add pre-commit hooks for gitleak and gitleak conf --- .gitleaks.toml | 5 +++++ .pre-commit-config.yaml | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 .gitleaks.toml create mode 100644 .pre-commit-config.yaml diff --git a/.gitleaks.toml b/.gitleaks.toml new file mode 100644 index 0000000..8e3f17e --- /dev/null +++ b/.gitleaks.toml @@ -0,0 +1,5 @@ +[allowlist] +description = "global allow lists" +paths = [ + '''.devcontainer''', +] \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..cafe8e8 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,5 @@ +repos: + - repo: https://github.com/zricethezav/gitleaks + rev: v8.17.0 + hooks: + - id: gitleaks \ No newline at end of file