From d387c2392afeca70ecf5cb2e6da969c4dad3b8b3 Mon Sep 17 00:00:00 2001 From: Danny Staple Date: Fri, 8 Aug 2025 15:42:01 +0100 Subject: [PATCH] Update .pre-commit-config.yaml --- .pre-commit-config.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 466d28c9..7fac2118 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,6 +29,7 @@ repos: exclude: "^.*drawio$" - id: detect-private-key exclude: "^.*drawio$" + # - id: detect-aws-credentials # exclude: "^.*drawio$" - id: check-ast @@ -39,3 +40,22 @@ repos: # hooks: # - id: cspell # docker run --rm -v $PWD:/app madewithlove/htaccess-cli -p _site https://orionrobots.co.uk/wiki/usb - verified htaccess on one file. But doesnt validate whole file syntax. + + - repo: https://github.com/editorconfig-checker/editorconfig-checker.python + rev: 3.2.1 + hooks: + - id: editorconfig-checker + alias: ec + + - repo: https://github.com/gitleaks/gitleaks + rev: v8.16.1 + hooks: + - id: gitleaks + + - repo: https://github.com/semgrep/pre-commit + rev: 'v1.117.0' + hooks: + - id: semgrep-docker + require_serial: true + pass_filenames: false + args: ["ci", "--dry-run", "--baseline-commit", "HEAD"]