Skip to content

Commit 99057b1

Browse files
authored
chore: Fix CI perms (googleapis#21694)
1 parent a95ac5b commit 99057b1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,15 @@ jobs:
4343
- name: Install tools
4444
run: |
4545
gem install --no-document toys
46+
- name: Hack perms
47+
# Hack permissions to avoid a bundler issue.
48+
# See https://github.com/actions/runner-images/issues/10215
49+
# and https://github.com/rubygems/rubygems/issues/7983.
50+
shell: bash
51+
run: |
52+
if [ -d /opt/hostedtoolcache/Ruby ]; then
53+
chmod -R o-w /opt/hostedtoolcache/Ruby
54+
fi
4655
- name: Test ${{ matrix.task }}
4756
run: |
4857
toys ci -v --only ${{ matrix.task }} --github-event-name=${{ github.event_name }} --github-event-payload=${{ github.event_path }}

0 commit comments

Comments
 (0)