From 9ca1810430b9f91e03e262e1649a1cf4439ab77b Mon Sep 17 00:00:00 2001 From: Shaohua Wen Date: Thu, 22 Aug 2024 13:35:45 +0700 Subject: [PATCH] add gitleaks and gitsecrets --- .pre-commit-config.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b2a7877..0029c22 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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