Skip to content

Commit fadc712

Browse files
step-security-bothsbt
authored andcommitted
[StepSecurity] ci: Harden GitHub Actions
Signed-off-by: StepSecurity Bot <[email protected]>
1 parent 90d3333 commit fadc712

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/test.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Test
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
strategy:
@@ -15,9 +18,9 @@ jobs:
1518
- { ruby: 'jruby-head', os: 'ubuntu-latest' }
1619
runs-on: ${{ matrix.os }}
1720
steps:
18-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
1922
- name: Set up Ruby
20-
uses: ruby/setup-ruby@v1
23+
uses: ruby/setup-ruby@c7079efafd956afb5d823e8999c2506e1053aefa # v1.126.0
2124
with:
2225
ruby-version: ${{ matrix.ruby }}
2326
bundler-cache: true # 'bundle install' and cache

0 commit comments

Comments
 (0)