Files
splunk-security_content/.pre-commit-config.yaml
Nasreddine Bencherchali 29113be7a7 Fix Broken Link, Versions and Pre-Commit (#3956)
* fix links and versions

* more versions
2026-03-13 19:17:15 +05:30

25 lines
833 B
YAML

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0 # Use the ref you want to point at
hooks:
- id: check-json
- id: check-symlinks
- id: requirements-txt-fixer
- id: detect-aws-credentials
args: ['--allow-missing-credentials']
- id: detect-private-key
- id: forbid-submodules
# yamlfmt: Auto-format YAML files in detections/ folder
- repo: local
hooks:
- id: yamlfmt
name: yamlfmt (detections only)
description: Format YAML files in detections/ with yamlfmt
entry: .pre-commit-hooks/yamlfmt-hook.py
language: python
files: ^detections/.*\.(yml|yaml)$
pass_filenames: true
# Optional: Specify custom yamlfmt binary path if not in PATH
# args: [--yamlfmt-path, /path/to/yamlfmt]