Skip to content

Commit 6fdf93d

Browse files
authored
Merge pull request #197 from github/gh-action-permissions
Declare least necessary permissions for GitHub Action; pin ruby/setup-ruby to sha
2 parents e5b0ca6 + 7b9d6d5 commit 6fdf93d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: CI
2+
permissions:
3+
contents: read
24

35
on: pull_request
46

@@ -14,7 +16,7 @@ jobs:
1416
- name: Update .ruby-version with matrix value
1517
run: echo "${{ matrix.ruby_version }}" >| .ruby-version
1618
- name: Set up Ruby
17-
uses: ruby/setup-ruby@v1
19+
uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984
1820
with:
1921
bundler-cache: true
2022
rubygems: latest

0 commit comments

Comments
 (0)