Files
varsig/.pre-commit-config.yaml
Michael Muré 8f6da19802 ci: define govulncheck version in pre-commit, avoid polluting go.mod
Other pre-commit dependencies' version are defined there already.
2025-07-10 14:07:14 +02:00

47 lines
1.4 KiB
YAML

# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
- id: check-json
# exclude: internal/agi/testdata/errors_on_unmarshal_with_invalid_json/.config.json
- id: check-yaml
- id: check-added-large-files
# - id: detect-aws-credentials
- id: detect-private-key
- id: mixed-line-ending
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
- repo: https://github.com/TekWizely/pre-commit-golang
rev: v1.0.0-rc.1
hooks:
- id: go-mod-tidy
- id: my-cmd-repo
alias: go-generate
name: go-generate
args: ["go", "generate", "./..."]
- id: go-test-mod
- id: golangci-lint-mod
- id: my-cmd-repo
alias: govulncheck
name: govulncheck
args: ["bash", "-c", "go run golang.org/x/vuln/cmd/govulncheck@v1.1.4 ./..."]
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.22.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ['@commitlint/config-conventional']
- repo: https://github.com/trufflesecurity/trufflehog
rev: v3.88.21
hooks:
- id: trufflehog
alias: trufflehog
name: trufflehog