2023-03-01 22:03:48 +08:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/dnephin/pre-commit-golang
|
|
|
|
rev: v0.5.0
|
|
|
|
hooks:
|
|
|
|
- id: golangci-lint
|
|
|
|
args: [--config=.golangci.yml, --timeout=3m]
|
|
|
|
- repo: https://github.com/crate-ci/typos
|
2023-09-05 10:17:48 +08:00
|
|
|
rev: v1.16.10
|
2023-03-01 22:03:48 +08:00
|
|
|
hooks:
|
|
|
|
- id: typos
|
2023-09-05 10:17:48 +08:00
|
|
|
- repo: https://github.com/trufflesecurity/trufflehog
|
|
|
|
rev: v3.54.3
|
2023-03-01 22:03:48 +08:00
|
|
|
hooks:
|
|
|
|
- id: trufflehog
|
|
|
|
name: TruffleHog
|
|
|
|
description: Detect secrets in your data.
|
|
|
|
entry: bash -c 'trufflehog git file://. --max-depth 1 --since-commit HEAD --only-verified --fail'
|
|
|
|
language: system
|
2023-09-12 10:59:18 +08:00
|
|
|
stages: ["commit"]
|