On 09/06/2025 21:28, Jeremy Drake via Cygwin-patches wrote:
From: Jeremy Drake <[email protected]>

After inherited permissons were removed, apparently there were no
permissions left allowing access, and GHA recently started failing on
actions/checkout with EPERM.

I'm going to assume there's been a change in the VM image which has triggered this failure, since it was working before...

But thanks very much for digging into the root cause of this.

Please apply.


Signed-off-by: Jeremy Drake <[email protected]>
---
  .github/workflows/cygwin.yml | 5 ++++-
  1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/cygwin.yml b/.github/workflows/cygwin.yml
index 087a68a999..3c3cd93219 100644
--- a/.github/workflows/cygwin.yml
+++ b/.github/workflows/cygwin.yml
@@ -107,7 +107,10 @@ jobs:
      - run: git config --global core.autocrlf input
      # remove inheritable permissions since they break assumptions testsuite
      # makes about file modes
-    - run: icacls . /inheritance:r
+    - name: adjust permissions
+      run: |
+        icacls . /inheritance:r
+        icacls . /grant Administrators:F
      - uses: actions/checkout@v3

      # install cygwin and build tools

Reply via email to