Initial commit

This commit is contained in:
Sandeep Kulange 2024-05-10 20:29:53 +05:30
parent 1f0ffcf05c
commit 74b0aba916

View file

@ -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'