File tree Expand file tree Collapse file tree 3 files changed +56
-6
lines changed
Expand file tree Collapse file tree 3 files changed +56
-6
lines changed Original file line number Diff line number Diff line change 1+ # https://github.com/j178/prek
2+ name : Audit hooks
3+
4+ on : [pull_request]
5+
6+ permissions :
7+ contents : read
8+
9+ jobs :
10+ pre-commit :
11+ name : 🏃♂️➡️ prek on ${{ matrix.os }}
12+ runs-on : ${{ matrix.os }}
13+ strategy :
14+ matrix :
15+ os : [ubuntu-latest, windows-latest]
16+ steps :
17+ - name : " Checkout ${{ github.ref }} ( ${{ github.sha }} )"
18+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
19+ with :
20+ persist-credentials : false
21+ - name : Run prek-action
22+ uses : j178/prek-action@53276d8b0d10f8b6672aa85b4588c6921d0370cc # v2.0.1
23+ with :
24+ install-only : true
25+ - name : Run manual prek hooks
26+ run : prek run --all-files --config .pre-commit-config-audit.yaml
Original file line number Diff line number Diff line change 1+ default_stages : [pre-commit, pre-push]
2+ minimum_prek_version : " 0.2.22"
3+ default_language_version :
4+ python : python3
5+ node : 24.14.0
6+ exclude : |
7+ (?x)^(
8+ \.git/|
9+ _site/|
10+ node_modules/|
11+ )
12+
13+ repos :
14+ - repo : meta
15+ hooks :
16+ - id : identity
17+ name : Run identity
18+ description : Run the identity check
19+ - id : check-hooks-apply
20+ name : run check-hooks-apply
21+ description : check that all the hooks apply to the repository
22+
23+ - repo : local
24+ hooks :
25+ - id : npm-audit
26+ name : run npm-audit
27+ description : Run npm audit
28+ entry : npm audit
29+ language : system
30+ pass_filenames : false
Original file line number Diff line number Diff line change @@ -43,12 +43,6 @@ repos:
4343 entry : npm run build
4444 language : system
4545 pass_filenames : false
46- - id : npm-audit
47- name : run npm-audit
48- description : Run npm audit
49- entry : npm audit
50- language : system
51- pass_filenames : false
5246
5347 # GO-based
5448 - repo : https://github.com/gitleaks/gitleaks
You can’t perform that action at this time.
0 commit comments