From 6381cc03e17e9f81fb848ff7744ee6351c8ef447 Mon Sep 17 00:00:00 2001 From: Xinjie Yao Date: Fri, 10 Apr 2026 14:22:34 -0700 Subject: [PATCH 1/2] try if it fix --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c5baed880..6ee40b08b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,6 +42,13 @@ jobs: SKIP: check-executables-have-shebangs steps: + # On self-hosted runners the workspace persists between runs and files + # can end up with 755 permissions. Hooks that rewrite files preserve + # the 755 mode, causing a 644→755 diff that fails pre-commit. + # Telling git to ignore file-mode changes avoids this. + - name: Ignore file-mode changes + run: git config --global core.fileMode false + - &install_git_step name: Install git (and tools needed by hooks) run: | From a18564ca489d1a0710e890bd3653dec2bf51b27a Mon Sep 17 00:00:00 2001 From: Xinjie Yao Date: Fri, 10 Apr 2026 14:32:20 -0700 Subject: [PATCH 2/2] reorder --- .github/workflows/ci.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ee40b08b..2714701eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,13 +42,6 @@ jobs: SKIP: check-executables-have-shebangs steps: - # On self-hosted runners the workspace persists between runs and files - # can end up with 755 permissions. Hooks that rewrite files preserve - # the 755 mode, causing a 644→755 diff that fails pre-commit. - # Telling git to ignore file-mode changes avoids this. - - name: Ignore file-mode changes - run: git config --global core.fileMode false - - &install_git_step name: Install git (and tools needed by hooks) run: | @@ -92,6 +85,12 @@ jobs: run: | git status + # On self-hosted runners the workspace persists and files can end up + # 755; hooks that rewrite files preserve the mode, producing a + # 644→755 diff that fails pre-commit. + - name: Ignore file-mode changes + run: git config core.fileMode false + - name: Run pre-commit uses: pre-commit/action@v3.0.1 with: