Skip to content

Commit

Permalink
chore(StepSecurity): Add gitleaks pre-commit hook; rearange hooks (#…
Browse files Browse the repository at this point in the history
…781)

Signed-off-by: StepSecurity Bot <[email protected]>
Co-authored-by: StepSecurity Bot <[email protected]>
  • Loading branch information
MaxymVlasov and step-security-bot authored Jan 24, 2025
1 parent 073a4fd commit 911e9ce
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,22 @@ repos:
- id: mixed-line-ending
args: [--fix=lf]

# Non-modifying checks:
- id: name-tests-test
files: >-
^tests/[^_].*\.py$
# Security
- id: detect-aws-credentials
args:
- --allow-missing-credentials
- id: detect-private-key

# Non-modifying checks:
- id: name-tests-test
files: >-
^tests/[^_].*\.py$
# Detect hardcoded secrets
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.3
hooks:
- id: gitleaks

- repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1
Expand All @@ -53,6 +59,14 @@ repos:
args:
- --strict

# JSON5 Linter
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
# https://prettier.io/docs/en/options.html#parser
files: .json5$

- repo: https://github.com/pre-commit/mirrors-mypy.git
rev: v1.14.1
hooks:
Expand Down Expand Up @@ -135,11 +149,3 @@ repos:
- --ignore=SC1091 # Useless check
- --ignore=SC2015 # Useless check
- --ignore=SC3037 # Not related to alpine

# JSON5 Linter
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
# https://prettier.io/docs/en/options.html#parser
files: .json5$

0 comments on commit 911e9ce

Please sign in to comment.