Skip to content

Commit

Permalink
include gem_home perms workaround
Browse files Browse the repository at this point in the history
Remove write access to the world on GEM_HOME. Hopefully a temporary
workaround until the runner image is fixed.

See actions/runner-images#10215
  • Loading branch information
robbkidd committed Aug 7, 2024
1 parent a5a571a commit 4ac28e3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/actions/test_gem/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ runs:
ruby-version: "${{ inputs.ruby }}"
bundler: "latest"
working-directory: "${{ steps.setup.outputs.gem_dir }}"
# Perms workaround. See https://github.com/actions/runner-images/issues/10215
- name: Fix GEM_HOME permissions on GitHub Actions Runner
if: "${{ steps.setup.outputs.appraisals == 'true' }}"
shell: bash
run: |
# 🛠️😭 Fix GEM_HOME permissions 😭🛠️
chmod -R o-w $(gem env home)
- name: Install dependencies and generate appraisals
if: "${{ steps.setup.outputs.appraisals == 'true' }}"
shell: bash
Expand Down

0 comments on commit 4ac28e3

Please sign in to comment.