File tree Expand file tree Collapse file tree 2 files changed +39
-1
lines changed
Expand file tree Collapse file tree 2 files changed +39
-1
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -12,7 +12,13 @@ exclude: |
1212 )
1313
1414repos :
15- # Standard pre-commit hooks for basic file checks
15+ - repo : meta
16+ hooks :
17+ - id : identity
18+ name : Run identity
19+ description : Run the identity check
20+ - id : check-hooks-apply
21+ name : Check hooks apply to the repository
1622 - repo : local
1723 hooks :
1824 - id : check-zip-file-is-not-committed
@@ -23,6 +29,38 @@ repos:
2329 Zip files are not allowed in the repository as they are hard to
2430 track and have security implications. Please remove the zip file from the repository.
2531 files : (?i)\.zip$
32+ - id : npm-ci
33+ name : Install Node dependencies
34+ entry : npm ci
35+ language : system
36+ pass_filenames : false
37+ - id : eleventy-build-check
38+ name : Eleventy build and output check
39+ entry : npm run build
40+ language : system
41+ pass_filenames : false
42+ - id : npm-audit
43+ name : Run npm-audit
44+ description : Run npm audit
45+ entry : npm audit --audit-level=high
46+ language : system
47+ pass_filenames : false
48+ # GO-based
49+ # - repo: https://github.com/gitleaks/gitleaks
50+ # rev: v8.30.0
51+ # hooks:
52+ # - id: gitleaks
53+ # name: Run gitleaks
54+ # description: Check for secrets with gitleaks
55+ - repo : https://github.com/Lucas-C/pre-commit-hooks
56+ rev : v1.5.6
57+ hooks :
58+ - id : chmod
59+ name : Set file permissions
60+ description : Does not run on Windows so setup as a manual hook
61+ args : ["644"]
62+ files : \.md$
63+ stages : [manual]
2664 - repo : https://github.com/pre-commit/pre-commit-hooks
2765 rev : v6.0.0
2866 hooks :
You can’t perform that action at this time.
0 commit comments