Skip to content
Discussion options

You must be logged in to vote

To workaround the issue, I added the following to my workflow

      - name: Fix ruby gems directory permissions
        if: matrix.os == 'ubuntu-22.04-arm'
        run: |
          # Fix ownership first so current user can write, then remove world-writable
          BUNDLE_DIR="$(brew --prefix)/Homebrew/Library/Homebrew/vendor/bundle/ruby"
          if [ -d "${BUNDLE_DIR}" ]; then
            # Take ownership so we can write to it
            sudo chown -R "$(whoami):$(id -gn)" "${BUNDLE_DIR}"
            # Remove world-writable permissions to satisfy Bundler security
            chmod -R o-w "${BUNDLE_DIR}"
            echo "Fixed ownership and permissions for ${BUNDLE_DIR}"
          fi

T…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ReenigneArcher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant