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: check-yaml
- id: end-of-file-fixer - id: end-of-file-fixer
- id: trailing-whitespace - id: trailing-whitespace
- 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 - id: talisman-commit
name: talisman entry: cmd --githook pre-commit
entry: talisman --githook pre-commit -
stages: [ commit ] # - id: gitleaks
# talisman currently discovers files by itself and does not take them on the cli # name: Detect hardcoded secrets
pass_filenames: false # description: Detect hardcoded secrets using Gitleaks
types: [ text ] # entry: gitleaks protect --verbose --redact --staged
language: golang # language: golang
- id: gitleaks # pass_filenames: false
name: Detect hardcoded secrets # - id: pretty-format-java
description: Detect hardcoded secrets using Gitleaks # name: Google Java Formatter
entry: gitleaks protect --verbose --redact --staged # description: Runs Google Java Formatter over Java source files
language: golang # entry: pretty-format-java
pass_filenames: false # language: python
- id: gitleaks-docker # types: [ java ]
name: Detect hardcoded secrets # # this is needed because the hook downloads google-java-formatter and
description: Detect hardcoded secrets using Gitleaks # # we don't have yet a nice way of ensuring a single download over multiple runs
entry: zricethezav/gitleaks protect --verbose --redact --staged # require_serial: true
language: docker_image # minimum_pre_commit_version: '1'
- 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'