mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
29113be7a7
* fix links and versions * more versions
25 lines
833 B
YAML
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]
|