@@ -53,14 +53,20 @@ repos:
5353 - id : check-useless-excludes
5454 always_run : true
5555
56+ # sync additional-dependencies version with repo rev where relevant
57+ - repo : https://github.com/pre-commit/sync-pre-commit-deps
58+ rev : v0.0.3
59+ hooks :
60+ - id : sync-pre-commit-deps
61+
5662 # local scripts
5763- repo : local
5864 hooks :
5965 # create build directory for cppcheck & logs directory
6066 - id : cppcheck-build-dir
6167 name : Create cache dir for cppcheck
62- entry : cmake -E make_directory Builds/cppcheck/ logs/
6368 language : system
69+ entry : cmake -E make_directory Builds/cppcheck/ logs/
6470 always_run : true
6571 pass_filenames : false
6672
@@ -105,7 +111,7 @@ repos:
105111 additional_dependencies : [cppcheck>=1.5.1]
106112 - id : cpplint
107113 args : [--verbose=0]
108- additional_dependencies : [cpplint]
114+ additional_dependencies : [cpplint>=2.0.2 ]
109115
110116 # CMake formatting & linting
111117- repo : https://github.com/cheshirekow/cmake-format-precommit
@@ -149,10 +155,17 @@ repos:
149155 hooks :
150156 - id : format_justfile
151157 name : Autoformat justfile
152- entry : just --fmt --unstable
153158 language : system
159+ entry : just --fmt --unstable
154160 files : justfile
155161 pass_filenames : false
162+ - id : pin_github_actions
163+ name : Pin GitHub Action dependencies to commit hashes
164+ language : system
165+ entry : pin-github-action
166+ args : [--continue-on-error]
167+ files : .github/workflows/
168+ types : [yaml]
156169
157170 # general
158171- repo : https://github.com/pre-commit/pre-commit-hooks
@@ -202,6 +215,7 @@ repos:
202215 hooks :
203216 - id : md-dead-link-check
204217 args : [--config, config/link-checker.toml]
218+ always_run : true
205219
206220 # check editorconfig rules
207221- repo : https://github.com/editorconfig-checker/editorconfig-checker.python
@@ -228,5 +242,4 @@ repos:
228242ci :
229243 autofix_commit_msg : ' chore: pre-commit autofix'
230244 autoupdate_commit_msg : ' chore(deps): pre-commit autoupdate'
231- # just & hadolint executables won't be present in CI, and CI hooks can't connect to the internet
232- skip : [hadolint, format_justfile, check-jsonschema, md-dead-link-check]
245+ skip : [hadolint, format_justfile, pin_github_actions, check-jsonschema, md-dead-link-check]
0 commit comments