File: //etc/modsecurity.d/owasp/.pre-commit-config.yaml
---
ci:
autofix_commit_msg: |
chore(formatting): auto fixes from pre-commit hooks
for more information, see https://pre-commit.ci
autofix_prs: true
skip: []
submodules: false
# Update the rev variable with the release version that you want, from the yamllint repo
# You can pass your custom .yamllint with args attribute.
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
args: [--allow-multiple-documents]
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: '^regex-assembly/'
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.38.0
hooks:
- id: yamllint
args: [-f=github, -c=.yamllint.yml]
files: '\.ya?ml$'
- repo: local
hooks:
- id: regex-update
name: update-regex-assembly-files
entry: crs-toolchain regex update --all -l error
additional_dependencies: ['github.com/coreruleset/crs-toolchain/[email protected]']
language: golang
pass_filenames: false
files: '^regex-assembly/'
- repo: local
hooks:
- id: regex-format
name: format-regex-assembly-files
entry: crs-toolchain regex format --all -l error
additional_dependencies: ['github.com/coreruleset/crs-toolchain/[email protected]']
language: golang
pass_filenames: false
files: '^regex-assembly/'