From 040d73d3b8adb8f893edadb0b276ca652b5cd8b3 Mon Sep 17 00:00:00 2001 From: Matthew Rodusek <7519129+bitwizeshift@users.noreply.github.com> Date: Thu, 14 Dec 2023 22:44:04 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Fix=20permissions=20of=20target?= =?UTF-8?q?=20subdirectories?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `./target` subdirectories were being created with permission `0750` which, although valid, is triggering warnings in Github's actions during uploading -- as the required permissions are `0755`. This manually find all directories and changes the permissions to be `0755` so that there are no generated warning annotations. --- .github/workflows/docs.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 4bb1ccd..d3b10a9 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -52,6 +52,14 @@ jobs: with: output-file: target/doc/licenses.html + # Some of the doc generation steps above create the directories with + # 0750 for permissions -- which is triggering warning annotations in the + # workflow summaries. Manually converting this to 0755 helps to suppress + # this. + - name: Fix permissions + run: | + find ./target -type d -exec chmod 0755 {} \; + - name: Upload Pages Artifact uses: actions/upload-pages-artifact@v1 with: