Skip to content

Commit

Permalink
Merge pull request #197 from github/gh-action-permissions
Browse files Browse the repository at this point in the history
Declare least necessary permissions for GitHub Action; pin ruby/setup-ruby to sha
  • Loading branch information
bensheldon authored Oct 10, 2024
2 parents e5b0ca6 + 7b9d6d5 commit 6fdf93d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: CI
permissions:
contents: read

on: pull_request

Expand All @@ -14,7 +16,7 @@ jobs:
- name: Update .ruby-version with matrix value
run: echo "${{ matrix.ruby_version }}" >| .ruby-version
- name: Set up Ruby
uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984
with:
bundler-cache: true
rubygems: latest
Expand Down

0 comments on commit 6fdf93d

Please sign in to comment.