Skip to content

Commit

Permalink
add gitleaks and gitsecrets
Browse files Browse the repository at this point in the history
  • Loading branch information
holywen committed Aug 22, 2024
1 parent bd4c1c6 commit 9ca1810
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
args: [ "--markdown-linebreak-ext=md" ]
- id: mixed-line-ending
- id: check-added-large-files
args: [--maxkb=2048]
- id: detect-aws-credentials
- id: detect-private-key
- id: check-merge-conflict
- id: check-case-conflict
Expand All @@ -17,8 +21,13 @@ repos:
exclude: "templates/.*"
- id: check-vcs-permalinks

- repo: https://github.com/gitleaks/gitleaks
rev: v8.18.4
hooks:
- id: gitleaks

- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.79.1
rev: v1.92.2
hooks:
- id: terraform_fmt
name: Format Terraform Configuration
Expand Down

0 comments on commit 9ca1810

Please sign in to comment.