From 5b5399ddd63e0df25d406f6508415314d7bdad74 Mon Sep 17 00:00:00 2001 From: russointroitoa Date: Mon, 16 Sep 2024 07:45:21 +0200 Subject: [PATCH] Fix insecure installation path on Github Actions --- .github/workflows/test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bdfedea..05e1a25 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,6 +37,10 @@ jobs: bundler: 2 ruby-version: ${{ matrix.ruby_version }} + # Fix "installation path is insecure". Followed https://github.com/rubygems/rubygems/issues/7983 + - name: Change permissions + run: chmod -R o-w /opt/hostedtoolcache/Ruby/3.1.6/x64/lib/ruby/gems/3.1.0/gems + # Appraisal doesn't support vendored install # See: https://github.com/thoughtbot/appraisal/issues/173 # https://github.com/thoughtbot/appraisal/pull/174