From aeb19d6bf59f26a46c4c1b8cf0ae1d8d7cb7898a Mon Sep 17 00:00:00 2001 From: Anuraag Agrawal Date: Fri, 9 Apr 2021 09:30:46 +0900 Subject: [PATCH] Set permissions for gem credentials file for pushing. --- .github/workflows/release-build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 819f018..290fbcc 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -28,13 +28,14 @@ jobs: - name: Set API key credentials run: | echo ":rubygems_api_key: $RUBYGEMS_API_KEY" > ~/.gem/credentials + chmod 0600 ~/.gem/credentials env: RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }} # Implicitly verifies that CHANGELOG and version.rb match - name: Push gem run: gem push aws-xray-sdk-${{ env.VERSION }}.gem - name: Clear credentials - run: rm ~/.gem/credentials + run: rm -f ~/.gem/credentials - name: Create Release id: create_release uses: actions/create-release@v1