From ecace7ae1c7b863f7aded455bf65b1d367d69f3d Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Fri, 16 Oct 2026 15:50:06 -0700 Subject: [PATCH] ci: align pre-commit checkout with its workflow revision Signed-off-by: Ralf W. Grosse-Kunstleve --- .github/workflows/pre-commit.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 322cc8e127d..becaaf6feec 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -51,10 +51,11 @@ jobs: if: runner.os == 'Windows' run: git config --global core.symlinks true + # PR workflows run from the merge revision; check out that same revision + # so their helper scripts and configuration stay in sync. - name: Checkout repository uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: - ref: ${{ github.event.pull_request.head.sha || github.sha }} fetch-depth: 1 persist-credentials: false