diff --git a/scripts/config/gitleaks.toml b/scripts/config/gitleaks.toml index ddcf5f5..e4b6bc1 100644 --- a/scripts/config/gitleaks.toml +++ b/scripts/config/gitleaks.toml @@ -14,9 +14,11 @@ regexes = [ # Exclude the private network IPv4 addresses as well as the DNS servers for Google and OpenDNS '''(127\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}|10\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}|172\.(1[6-9]|2[0-9]|3[0-1])\.[0-9]{1,3}\.[0-9]{1,3}|192\.168\.[0-9]{1,3}\.[0-9]{1,3}|0\.0\.0\.0|255\.255\.255\.255|8\.8\.8\.8|8\.8\.4\.4|208\.67\.222\.222|208\.67\.220\.220)''', ] -paths = [ - '''docs/Gemfile\.lock''', -] [allowlist] -paths = ['''.terraform.lock.hcl''', '''poetry.lock''', '''yarn.lock'''] +paths = [ + '''.terraform.lock.hcl''', + '''poetry.lock''', + '''yarn.lock''', + '''Gemfile.lock''', +] diff --git a/scripts/config/pre-commit.yaml b/scripts/config/pre-commit.yaml index 1cc40e3..41dafe7 100644 --- a/scripts/config/pre-commit.yaml +++ b/scripts/config/pre-commit.yaml @@ -1,4 +1,20 @@ repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.6.0 # Use the ref you want to point at + hooks: + - id: trailing-whitespace + - id: detect-aws-credentials + args: [--allow-missing-credentials] + - id: check-added-large-files + - id: check-symlinks + - id: detect-private-key + - id: end-of-file-fixer + exclude: .+\.cs + - id: forbid-new-submodules + - id: mixed-line-ending + - id: pretty-format-json + args: ['--autofix'] + # - id: ... - repo: local hooks: - id: scan-secrets