From 74b0aba9164af1d494c4e95d8836a36f523ffd91 Mon Sep 17 00:00:00 2001 From: Sandeep Kulange Date: Fri, 10 May 2024 20:29:53 +0530 Subject: [PATCH] Initial commit --- .pre-commit-config.yaml | 59 +++++++++++++++++------------------------ 1 file changed, 25 insertions(+), 34 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 68f97d3fc..a98dc3be9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,39 +5,30 @@ repos: - id: check-yaml - id: end-of-file-fixer - id: trailing-whitespace - - id: talisman-commit - name: talisman - entry: talisman --githook pre-commit - stages: [ commit ] - # talisman currently discovers files by itself and does not take them on the cli - pass_filenames: false - types: [ text ] - language: golang - - id: gitleaks - name: Detect hardcoded secrets - description: Detect hardcoded secrets using Gitleaks - entry: gitleaks protect --verbose --redact --staged - language: golang - pass_filenames: false - - id: gitleaks-docker - name: Detect hardcoded secrets - description: Detect hardcoded secrets using Gitleaks - entry: zricethezav/gitleaks protect --verbose --redact --staged - language: docker_image - - id: gitleaks-system - name: Detect hardcoded secrets - description: Detect hardcoded secrets using Gitleaks - entry: gitleaks protect --verbose --redact --staged - language: system - - id: pretty-format-java - name: Google Java Formatter - description: Runs Google Java Formatter over Java source files - entry: pretty-format-java - language: python - types: [ java ] - # this is needed because the hook downloads google-java-formatter and - # we don't have yet a nice way of ensuring a single download over multiple runs - require_serial: true - minimum_pre_commit_version: '1' + + - repo: https://github.com/thoughtworks/talisman + rev: 'v1.28.0' # Update me! + hooks: + # both pre-commit and pre-push supported + # - id: talisman-push + - id: talisman-commit + entry: cmd --githook pre-commit + - +# - id: gitleaks +# name: Detect hardcoded secrets +# description: Detect hardcoded secrets using Gitleaks +# entry: gitleaks protect --verbose --redact --staged +# language: golang +# pass_filenames: false +# - id: pretty-format-java +# name: Google Java Formatter +# description: Runs Google Java Formatter over Java source files +# entry: pretty-format-java +# language: python +# types: [ java ] +# # this is needed because the hook downloads google-java-formatter and +# # we don't have yet a nice way of ensuring a single download over multiple runs +# require_serial: true +# minimum_pre_commit_version: '1'