[newlib-cygwin/cygwin-3_6-branch] Cygwin: CI: grant full control to Administrators on github workspace

Jeremy Drake via Cygwin-cvs <[email protected]>
Newsgroups gmane.os.cygwin.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=1a79dac5ea48693dd845aab3219d4072cab9d813

commit 1a79dac5ea48693dd845aab3219d4072cab9d813
Author: Jeremy Drake <[email protected]>
Date:   Mon Jun 9 12:25:04 2025 -0700

    Cygwin: CI: grant full control to Administrators on github workspace
    
    After inherited permissons were removed, apparently there were no
    permissions left allowing access, and GHA recently started failing on
    actions/checkout with EPERM.
    
    Signed-off-by: Jeremy Drake <[email protected]>

Diff:
---
 .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 b5b1e163e..877f54cde 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.