[newlib-cygwin/main] CI: Remove inheritable permissions from working directory

Jon Turney 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=d2bb03ae35f1d1b4a8f73e35f593d2d83d55752d

commit d2bb03ae35f1d1b4a8f73e35f593d2d83d55752d
Author: Jon Turney <[email protected]>
Date:   Thu Mar 20 16:27:19 2025 +0000

    CI: Remove inheritable permissions from working directory
    
    Remove inheritable permissions from the working directory, since they
    break assumptions that the testsuite makes about the filemode a given
    umask will result in.

Diff:
---
 .github/workflows/cygwin.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.github/workflows/cygwin.yml b/.github/workflows/cygwin.yml
index 803462a01..53dd06d3c 100644
--- a/.github/workflows/cygwin.yml
+++ b/.github/workflows/cygwin.yml
@@ -105,6 +105,9 @@ jobs:
     # endings, but this could still be dangerous e.g if we need symlinks in the
     # repo)
     - run: git config --global core.autocrlf input
+    # remove inheritable permissions since they break assumptions testsuite
+    # makes about file modes
+    - run: icacls . /inheritance:r
     - 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.