From 9ce2b292f00cb8667c34421bc9b198c821d65699 Mon Sep 17 00:00:00 2001 From: Gavin Elder Date: Wed, 25 Mar 2026 14:14:01 +0000 Subject: [PATCH] ci: switch from pre-commit to prek NOTASK Replace pre-commit/action with j178/prek-action, a fast Rust-based drop-in replacement. This removes the setup-python step (prek doesn't need Python) and resolves the issue where pre-commit/action internally uses actions/cache@v4 as a tag reference instead of a SHA-pinned commit, violating org policy. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/lint-code.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/lint-code.yml b/.github/workflows/lint-code.yml index 119f8c0..00a1529 100644 --- a/.github/workflows/lint-code.yml +++ b/.github/workflows/lint-code.yml @@ -11,8 +11,4 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: "3.12" - - - uses: pre-commit/action@v3.0.1 + - uses: j178/prek-action@0bb87d7f00b0c99306c8bcb8b8beba1eb581c037 # v1.1.1