Skip to content

Commit

Permalink
CCM-5100: Update hooks from repo template
Browse files Browse the repository at this point in the history
  • Loading branch information
m-houston committed Jul 9, 2024
1 parent ae6e8c6 commit eb6055a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/config/gitleaks.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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''',
]
16 changes: 16 additions & 0 deletions scripts/config/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit eb6055a

Please sign in to comment.