Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(StepSecurity): Add gitleaks pre-commit hook; rearange hooks #781

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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$
Loading