Skip to content

Commit 3b54e71

Browse files
authored
[CI] Pin to sha all pre-commit hooks and clean up (#2730)
1 parent 5da6b13 commit 3b54e71

1 file changed

Lines changed: 17 additions & 20 deletions

File tree

.pre-commit-config.yaml

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ repos:
3939
track and have security implications. Please remove the zip file from the repository
4040
files: (?i)\.zip$
4141
- repo: https://github.com/Lucas-C/pre-commit-hooks
42-
rev: v1.5.6
42+
rev: ad1b27d73581aa16cca06fc4a0761fc563ffe8e8 # frozen: v1.5.6
4343
hooks:
4444
- id: chmod
4545
name: set file permissions
@@ -48,13 +48,13 @@ repos:
4848
files: \.md$
4949
stages: [manual]
5050
- repo: https://github.com/codespell-project/codespell
51-
rev: v2.4.2
51+
rev: 2ccb47ff45ad361a21071a7eedda4c37e6ae8c5a # frozen: v2.4.2
5252
hooks:
5353
- id: codespell
5454
name: run codespell
5555
description: Check spelling with codespell
5656
- repo: https://github.com/pre-commit/pre-commit-hooks
57-
rev: v6.0.0
57+
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
5858
hooks:
5959
- id: check-case-conflict
6060
description: Check for files with names that would conflict on a case-insensitive filesystem like MacOS HFS+ or Windows FAT
@@ -100,7 +100,7 @@ repos:
100100
description: Trims trailing whitespace
101101
args: [--markdown-linebreak-ext=md]
102102
- repo: https://github.com/igorshubovych/markdownlint-cli
103-
rev: v0.48.0
103+
rev: e72a3ca1632f0b11a07d171449fe447a7ff6795e # frozen: v0.48.0
104104
hooks:
105105
- id: markdownlint
106106
name: run markdownlint
@@ -110,7 +110,7 @@ repos:
110110
types: [markdown]
111111
files: \.md$
112112
- repo: https://github.com/adrienverge/yamllint
113-
rev: v1.38.0
113+
rev: cba56bcde1fdd01c1deb3f945e69764c291a6530 # frozen: v1.38.0
114114
hooks:
115115
- id: yamllint
116116
name: run yamllint
@@ -119,13 +119,13 @@ repos:
119119
types: [yaml]
120120
files: \.ya?ml$
121121
- repo: https://github.com/gitleaks/gitleaks
122-
rev: v8.30.1
122+
rev: 83d9cd684c87d95d656c1458ef04895a7f1cbd8e # frozen: v8.30.1
123123
hooks:
124124
- id: gitleaks
125125
name: run gitleaks
126126
description: check for secrets with gitleaks
127127
- repo: https://github.com/zizmorcore/zizmor-pre-commit
128-
rev: v1.25.2
128+
rev: 9257c6050c0261b8c57e712f632dc4a8010109a9 # frozen: v1.25.2
129129
hooks:
130130
- id: zizmor
131131
name: run zizmor
@@ -134,13 +134,13 @@ repos:
134134
files: ^\.github/workflows/.*$
135135
types: [yaml]
136136
- repo: https://github.com/rhysd/actionlint
137-
rev: v1.7.12
137+
rev: 914e7df21a07ef503a81201c76d2b11c789d3fca # frozen: v1.7.12
138138
hooks:
139139
- id: actionlint
140140
name: run actionlint
141141
description: actionlint is a static checker for GitHub Actions workflow files
142142
- repo: https://github.com/tcort/markdown-link-check
143-
rev: v3.14.2
143+
rev: 3a8992dcbb083a248671812c7027b6995ef88523 # frozen: v3.14.2
144144
hooks:
145145
- id: markdown-link-check
146146
name: run markdown-link-check
@@ -149,36 +149,33 @@ repos:
149149
types: [markdown]
150150
files: \.md$
151151
- repo: https://github.com/oxipng/oxipng
152-
rev: v10.1.1
152+
rev: 628e241e23f368097883807fa6e985ccf7c00357 # frozen: v10.1.1
153153
hooks:
154154
- id: oxipng
155155
name: run oxipng
156156
description: check PNG files with oxipng
157157
args: ['--fix', '-o', '4', '--strip', 'safe', '--alpha']
158158
- repo: https://github.com/python-jsonschema/check-jsonschema
159-
rev: 0.37.2
159+
rev: f805888065fdb6162e1f800e50bb9460cbd223d6 # frozen: 0.37.2
160160
hooks:
161+
- id: check-citation-file-format
162+
name: run check-citation-file-format
163+
description: validate citation file format
164+
files: ^CITATION\.cff$
161165
- id: check-dependabot
162166
name: validate dependabot.yml
163167
description: ensures the dependabot config file is valid
164168
files: ^\.github/dependabot\.yml$
165169
- repo: https://github.com/shellcheck-py/shellcheck-py
166-
rev: v0.11.0.1
170+
rev: 745eface02aef23e168a8afb6b5737818efbea95 # frozen: v0.11.0.1
167171
hooks:
168172
- id: shellcheck
169173
name: run shellcheck
170174
description: check Shell scripts with shellcheck
171175
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
172-
rev: 3.6.1
176+
rev: bebfac867564fbd992e5b45379b4b0568d5cb85b # frozen: 3.6.1
173177
hooks:
174178
- id: editorconfig-checker
175179
name: run editorconfig-checker
176180
description: a tool to verify that your files are in harmony with your .editorconfig
177181
alias: ec
178-
- repo: https://github.com/python-jsonschema/check-jsonschema
179-
rev: 0.37.2
180-
hooks:
181-
- id: check-citation-file-format
182-
name: run check-citation-file-format
183-
description: validate citation file format
184-
files: ^CITATION\.cff$

0 commit comments

Comments
 (0)