Last active
June 4, 2025 00:18
-
-
Save Segmentational/2a816a92c5705f2f363319277ad4eddb to your computer and use it in GitHub Desktop.
Pre-Commit-Template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
repos: | |
- repo: "https://github.com/pre-commit/pre-commit-hooks" | |
rev: "v4.6.0" | |
hooks: | |
- id: check-added-large-files | |
- id: check-case-conflict | |
- id: check-merge-conflict | |
- id: check-executables-have-shebangs | |
- id: check-json | |
- id: check-symlinks | |
- id: check-vcs-permalinks | |
- id: check-xml | |
- id: check-yaml | |
args: [ --allow-multiple-documents ] | |
exclude: "templates/.*" | |
- id: mixed-line-ending | |
- id: trailing-whitespace | |
files: (automation/|ci/|code-scanning/|deployments/|pages/).*(yaml|yml|json)$ | |
- id: end-of-file-fixer | |
- id: check-json | |
- id: check-yaml | |
exclude: ^\.github/code-scanning/(nowsecure\.yml|nowsecure-mobile-sbom\.yml?$) | |
- id: check-added-large-files | |
- id: check-merge-conflict | |
- id: detect-aws-credentials | |
- id: detect-private-key | |
- repo: https://github.com/gitleaks/gitleaks | |
rev: v8.18.2 | |
hooks: | |
- id: gitleaks | |
# Project Specific | |
- repo: "https://github.com/terraform-docs/terraform-docs" | |
rev: "v0.20.0" | |
hooks: | |
- always_run: false | |
id: "terraform-docs-go" | |
entry: "terraform-docs" | |
args: | |
- infrastructure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment