Skip to content

Commit

Permalink
Add pre-commit check that will prevent accidentally committing secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
steventrouble committed Dec 12, 2023
1 parent 821eff8 commit f9b70a5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
rev: v4.5.0
hooks:
# Avoid trailing whitespace, see Java style guide
- id: trailing-whitespace
Expand All @@ -18,10 +18,15 @@ repos:
- id: check-yaml
- id: check-xml

- repo: https://github.com/stea-uw/pre-commit-maven
rev: 3f5d775
- repo: https://github.com/ejba/pre-commit-maven
rev: v0.3.4
hooks:
# Project compiles and passes unit tests
- id: maven-spotless-apply
- id: maven-compile
- id: maven-test

- repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
hooks:
- id: detect-secrets

0 comments on commit f9b70a5

Please sign in to comment.