Skip to content

Commit f4c7c93

Browse files
authored
ci: fix ruby/setup-ruby cache poisoning and stale version comment (#96)
- Disable bundler-cache and add explicit bundle install step to eliminate a zizmor cache-poisoning finding (bundler cache combined with docker/build-push-action publishing runtime artifacts) - Correct the trailing version comment on ruby/setup-ruby from v1.310.0 to v1.315.0 to match the pinned commit SHA
1 parent 8976353 commit f4c7c93

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ruby.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ jobs:
2020
with:
2121
persist-credentials: false
2222
- name: Set up Ruby ${{ matrix.ruby-version }}
23-
uses: ruby/setup-ruby@0dafeac902942906541bc140009cdbf32665b601 # v1.310.0 # zizmor: ignore[cache-poisoning]
23+
uses: ruby/setup-ruby@0dafeac902942906541bc140009cdbf32665b601 # v1.315.0
2424
with:
2525
ruby-version: ${{ matrix.ruby-version }}
26-
bundler-cache: true
26+
bundler-cache: false
27+
- name: Install gems
28+
run: bundle install
2729
- name: Set up Docker Buildx
2830
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
2931
with:

0 commit comments

Comments
 (0)