Skip to content

Commit 37bb714

Browse files
authored
Merge pull request #2912 from step-security-bot/stepsecurity_remediation_1669782973
[StepSecurity] ci: Harden GitHub Actions
2 parents a26b0c6 + d6233e9 commit 37bb714

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: ci
22

33
on: [push, pull_request]
44

5+
permissions: # added using https://github.com/step-security/secure-workflows
6+
contents: read
7+
58
jobs:
69
build:
710
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
@@ -18,11 +21,11 @@ jobs:
1821
- name: Dump environment
1922
run: env | sort
2023
- name: Checkout ruby/www.ruby-lang.org
21-
uses: actions/checkout@v3
24+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
2225
with:
2326
fetch-depth: 1
2427
- name: Setup Ruby
25-
uses: ruby/setup-ruby@v1
28+
uses: ruby/setup-ruby@c7079efafd956afb5d823e8999c2506e1053aefa # v1.126.0
2629
with:
2730
ruby-version: ${{ matrix.ruby }}
2831
bundler-cache: true

0 commit comments

Comments
 (0)