From 761de4b19c06995fcf3702f4efa0bdab7ad16fd4 Mon Sep 17 00:00:00 2001 From: Blair Hamilton Date: Tue, 4 Aug 2026 22:15:00 -0400 Subject: [PATCH] fix(pre-commit-advisory): bump go-pre-commit to v4.6.1 for the install retry fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit v4.6.0's install step fetched the release archive with `curl -fsSL --retry 3`, which only retries transient HTTP responses (5xx, 408, 429) and timeouts. A connection reset mid-transfer is a transport-level error, so curl exited 35 immediately without ever using its retry budget: curl: (35) Recv failure: Connection reset by peer That failed the install step and turned an otherwise-green k5s main red (run 30964880559); a plain re-run went green with no change. #51 stopped that class of failure from reddening a caller's default branch, but the seed run still fails and the PR path still pays a cold cache — this is the half that actually stops the flake. v4.6.1 adds `--retry-all-errors` (and raises --retry to 5), which extends the budget to the transport failures we actually hit. The bump is as narrow as it looks: v4.6.0..v4.6.1 touches only the action's own action.yml (2 lines). No Go source changed, so the installed pre-commit binary is byte-for-byte equivalent in behavior — no hook-execution or cache-layout risk. Both the `uses:` ref (which carries the fixed install script) and the `version:` input (which selects the downloaded release) move together so they can't drift. --- .github/workflows/pre-commit-advisory.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre-commit-advisory.yml b/.github/workflows/pre-commit-advisory.yml index b4a0be0..032fd30 100644 --- a/.github/workflows/pre-commit-advisory.yml +++ b/.github/workflows/pre-commit-advisory.yml @@ -147,9 +147,9 @@ jobs: # workflow drives pre-commit itself (diff-scoped run below + the # install-hooks cache seed), and the cache step above owns caching. - name: Install go-pre-commit - uses: blairham/go-pre-commit@v4.6.0 + uses: blairham/go-pre-commit@v4.6.1 with: - version: v4.6.0 + version: v4.6.1 install-only: 'true' cache: 'false'