Skip to content

Commit 34049ab

Browse files
johnscaclaude
andcommitted
Pin the prek version the lint job installs
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 904e90a commit 34049ab

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

‎.github/workflows/ci.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,17 @@ jobs:
2121
with:
2222
persist-credentials: false
2323

24+
- name: Set tool versions
25+
uses: wistia/parse-tool-versions@32f568a4ffd4bfa7720ebf93f171597d1ebc979a # v2.1.1
26+
with:
27+
postfix: _TOOL_VERSION
28+
2429
- uses: j178/prek-action@4e14d07f9231acabce116ccfca13b13dd9755ece # v3.0.0
30+
with:
31+
# Without a pin this installs whatever prek released most recently,
32+
# so a hostile release reaches CI with no change here. The version
33+
# comes from .tool-versions, so CI and a local run agree on it.
34+
prek-version: ${{ env.PREK_TOOL_VERSION }}
2535
env:
2636
# zizmor's five online audits skip silently without a token, and its
2737
# summary line reads the same either way, so CI would look green with

‎.tool-versions‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
just 1.40.0
2+
prek 0.5.5
23
uv 0.8.14

‎justfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# lint files
22
lint:
3-
uvx prek run --all-files
3+
prek run --all-files
44

55
# run the tests
66
test:

0 commit comments

Comments
 (0)