Skip to content

Commit 1d387b0

Browse files
authored
Merge pull request #450 from step-security-bot/stepsecurity_remediation_1669782407
[StepSecurity] ci: Harden GitHub Actions
2 parents 30fbf4e + 3bf3cd7 commit 1d387b0

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

.github/workflows/coverage.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@ name: coverage
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
runs-on: ubuntu-latest
811
steps:
9-
- uses: actions/checkout@v3
10-
- uses: ruby/setup-ruby@v1
12+
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
13+
- uses: ruby/setup-ruby@c7079efafd956afb5d823e8999c2506e1053aefa # v1.126.0
1114
with:
1215
ruby-version: '3.0'
1316
- name: Install dependencies

.github/workflows/lint.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@ name: lint
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
lint:
710
runs-on: ubuntu-latest
811
continue-on-error: true
912
steps:
10-
- uses: actions/checkout@v3
11-
- uses: ruby/setup-ruby@v1
13+
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
14+
- uses: ruby/setup-ruby@c7079efafd956afb5d823e8999c2506e1053aefa # v1.126.0
1215
with:
1316
ruby-version: '3.0'
1417
bundler-cache: true

.github/workflows/test.yml

Lines changed: 5 additions & 2 deletions
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
test:
710
runs-on: ${{ matrix.os }}
@@ -17,8 +20,8 @@ jobs:
1720
- os: windows-latest
1821
ruby: jruby
1922
steps:
20-
- uses: actions/checkout@v3
21-
- uses: ruby/setup-ruby@v1
23+
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
24+
- uses: ruby/setup-ruby@c7079efafd956afb5d823e8999c2506e1053aefa # v1.126.0
2225
with:
2326
ruby-version: ${{ matrix.ruby }}
2427
- name: Install dependencies

0 commit comments

Comments
 (0)