From 2a71518fbe507295f5069746a3d3b7be7be90e85 Mon Sep 17 00:00:00 2001 From: mcsherrylabs Date: Fri, 27 May 2022 14:26:39 +0100 Subject: [PATCH] Fix permissions for gnupg --- .github/workflows/publish.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5d30de9..cee74a3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -32,7 +32,11 @@ jobs: - name: Configure GPG Key run: | mkdir -p ~/.gnupg/ + chown -R $(whoami) ~/.gnupg/ + # Also correct the permissions and access rights on the directory + chmod 700 ~/.gnupg printf "$GPG_SIGNING_KEY" | base64 --decode > ~/.gnupg/private.key + chmod 600 ~/.gnupg/* gpg --import --no-tty --batch --yes ~/.gnupg/private.key - name: Package uses: actions/setup-java@v1.4.3