Skip to content

Commit 24593c6

Browse files
[StepSecurity] Apply security best practices
Signed-off-by: StepSecurity Bot <bot@stepsecurity.io>
1 parent 7f9f2f6 commit 24593c6

File tree

1 file changed

+35
-7
lines changed

1 file changed

+35
-7
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,22 @@ env:
1010
go_version: 1.21
1111
GO111MODULE: on
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
Check-License:
1518
runs-on: ubuntu-latest
1619
steps:
17-
- uses: actions/checkout@v3
20+
- name: Harden the runner (Audit all outbound calls)
21+
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
22+
with:
23+
egress-policy: audit
24+
25+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
1826
with:
1927
version: latest
20-
- uses: actions/setup-go@v3
28+
- uses: actions/setup-go@be3c94b385c4f180051c996d336f57a34c397495 # v3.6.1
2129
with:
2230
go-version: ${{ env.go_version }}
2331
- run: make go-deps
@@ -26,10 +34,15 @@ jobs:
2634
Check-Spelling:
2735
runs-on: ubuntu-latest
2836
steps:
29-
- uses: actions/checkout@v3
37+
- name: Harden the runner (Audit all outbound calls)
38+
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
39+
with:
40+
egress-policy: audit
41+
42+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
3043
with:
3144
version: latest
32-
- uses: actions/setup-go@v3
45+
- uses: actions/setup-go@be3c94b385c4f180051c996d336f57a34c397495 # v3.6.1
3346
with:
3447
go-version: ${{ env.go_version }}
3548
- run: make go-deps
@@ -38,7 +51,12 @@ jobs:
3851
Check-Gen:
3952
runs-on: ubuntu-latest
4053
steps:
41-
- uses: actions/checkout@v3
54+
- name: Harden the runner (Audit all outbound calls)
55+
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
56+
with:
57+
egress-policy: audit
58+
59+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
4260
with:
4361
version: latest
4462
- run: make node-deps
@@ -47,7 +65,12 @@ jobs:
4765
Check-Valid:
4866
runs-on: ubuntu-latest
4967
steps:
50-
- uses: actions/checkout@v3
68+
- name: Harden the runner (Audit all outbound calls)
69+
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
70+
with:
71+
egress-policy: audit
72+
73+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
5174
with:
5275
version: latest
5376
- run: make node-deps
@@ -56,7 +79,12 @@ jobs:
5679
Salus:
5780
runs-on: ubuntu-latest
5881
steps:
59-
- uses: actions/checkout@v3
82+
- name: Harden the runner (Audit all outbound calls)
83+
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
84+
with:
85+
egress-policy: audit
86+
87+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
6088
with:
6189
version: latest
6290
- run: make salus

0 commit comments

Comments
 (0)