Skip to content

Commit 2bffac2

Browse files
[StepSecurity] Apply security best practices
Signed-off-by: StepSecurity Bot <bot@stepsecurity.io>
1 parent cd8dd7e commit 2bffac2

2 files changed

Lines changed: 19 additions & 3 deletions

File tree

.github/workflows/rubocop.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
on:
22
- push
3+
permissions:
4+
contents: read
5+
36
jobs:
47
rubocop:
58
runs-on: ubuntu-latest
@@ -9,9 +12,14 @@ jobs:
912
ruby: ['3.2.1']
1013

1114
steps:
12-
- uses: actions/checkout@v2
15+
- name: Harden the runner (Audit all outbound calls)
16+
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
17+
with:
18+
egress-policy: audit
19+
20+
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
1321
- name: Set up Ruby
14-
uses: ruby/setup-ruby@v1
22+
uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.245.0
1523
with:
1624
ruby-version: ${{ matrix.ruby }}
1725
bundler-cache: true

.github/workflows/tests.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
---
22
on:
33
- push
4+
permissions:
5+
contents: read
6+
47
jobs:
58
tests_job:
69
runs-on: ubuntu-latest
710
name: Automated Tests
811
steps:
9-
- uses: actions/checkout@v1
12+
- name: Harden the runner (Audit all outbound calls)
13+
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
14+
with:
15+
egress-policy: audit
16+
17+
- uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0
1018
- name: Build Salus
1119
run: docker build -t salus-local .
1220
- name: Run salus

0 commit comments

Comments
 (0)