Skip to content

Commit 691d545

Browse files
anupsvanupsv
andauthored
chore: fixing dependency hashes in CI (#342)
Co-authored-by: anupsv <asv@asvs-wk.local>
1 parent ed9200b commit 691d545

6 files changed

Lines changed: 129 additions & 30 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,18 @@ jobs:
1111
name: Build
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
15-
- uses: actions/setup-go@v4
14+
- uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911
15+
with:
16+
egress-policy: block
17+
allowed-endpoints: >
18+
api.github.com:443
19+
github.com:443
20+
proxy.golang.org:443
21+
release-assets.githubusercontent.com:443
22+
storage.googleapis.com:443
23+
sum.golang.org:443
24+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
1626
with:
1727
go-version: '1.21'
1828
- name: Build

.github/workflows/check-fmt.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,20 @@ jobs:
1313
name: Check make fmt
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911
17+
with:
18+
egress-policy: block
19+
allowed-endpoints: >
20+
api.github.com:443
21+
github.com:443
22+
proxy.golang.org:443
23+
release-assets.githubusercontent.com:443
24+
storage.googleapis.com:443
25+
sum.golang.org:443
26+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1727

1828
- name: install go1.21
19-
uses: actions/setup-go@v5
29+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
2030
with:
2131
go-version: "1.21"
2232

.github/workflows/golangci-lint.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,23 @@ jobs:
1111
name: Lint
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
15-
- uses: actions/setup-go@v4
14+
- uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911
15+
with:
16+
egress-policy: block
17+
allowed-endpoints: >
18+
api.github.com:443
19+
github.com:443
20+
proxy.golang.org:443
21+
raw.githubusercontent.com:443
22+
release-assets.githubusercontent.com:443
23+
storage.googleapis.com:443
24+
sum.golang.org:443
25+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
1627
with:
1728
go-version: '1.21'
1829
- name: golangci-lint
19-
uses: golangci/golangci-lint-action@v6
30+
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.1
2031
with:
2132
version: latest
2233
args: --timeout 3m

.github/workflows/integration-test.yml

Lines changed: 61 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,32 @@ jobs:
1111
name: Integration Test - Local Keystore
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/setup-go@v4
14+
- uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911
15+
with:
16+
egress-policy: block
17+
allowed-endpoints: >
18+
api.github.com:443
19+
azure.archive.ubuntu.com:80
20+
esm.ubuntu.com:443
21+
ghcr.io:443
22+
github.com:443
23+
madhur-test-public.s3.us-east-2.amazonaws.com:443
24+
objects.githubusercontent.com:443
25+
packages.microsoft.com:443
26+
pkg-containers.githubusercontent.com:443
27+
proxy.golang.org:443
28+
release-assets.githubusercontent.com:443
29+
storage.googleapis.com:443
30+
sum.golang.org:443
31+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
1532
with:
1633
go-version: '1.21'
1734
- name: Install Foundry
18-
uses: foundry-rs/foundry-toolchain@v1
35+
uses: foundry-rs/foundry-toolchain@8f1998e9878d786675189ef566a2e4bf24869773 # v1.2.0
1936
with:
2037
version: nightly-c4a984fbf2c48b793c8cd53af84f56009dd1070c
2138
- name: Checkout eigensdk-go
22-
uses: actions/checkout@v4
39+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2340
with:
2441
repository: layr-labs/eigensdk-go
2542
token: ${{ github.token }}
@@ -29,7 +46,7 @@ jobs:
2946
run: |
3047
nohup make start-anvil-with-contracts-deployed > nohup.out 2>&1 &
3148
- name: Install EigenLayer CLI
32-
uses: actions/checkout@v4
49+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3350
with:
3451
path: eigenlayer-cli
3552
- name: Install less
@@ -84,15 +101,34 @@ jobs:
84101
name: Integration Test - Web3 Signer
85102
runs-on: ubuntu-latest
86103
steps:
87-
- uses: actions/setup-go@v4
104+
- uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911
105+
with:
106+
egress-policy: block
107+
allowed-endpoints: >
108+
api.github.com:443
109+
auth.docker.io:443
110+
azure.archive.ubuntu.com:80
111+
esm.ubuntu.com:443
112+
ghcr.io:443
113+
github.com:443
114+
madhur-test-public.s3.us-east-2.amazonaws.com:443
115+
packages.microsoft.com:443
116+
pkg-containers.githubusercontent.com:443
117+
production.cloudflare.docker.com:443
118+
proxy.golang.org:443
119+
registry-1.docker.io:443
120+
release-assets.githubusercontent.com:443
121+
storage.googleapis.com:443
122+
sum.golang.org:443
123+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
88124
with:
89125
go-version: '1.21'
90126
- name: Install Foundry
91-
uses: foundry-rs/foundry-toolchain@v1
127+
uses: foundry-rs/foundry-toolchain@8f1998e9878d786675189ef566a2e4bf24869773 # v1.2.0
92128
with:
93129
version: nightly-c4a984fbf2c48b793c8cd53af84f56009dd1070c
94130
- name: Checkout eigensdk-go
95-
uses: actions/checkout@v4
131+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
96132
with:
97133
repository: layr-labs/eigensdk-go
98134
token: ${{ github.token }}
@@ -101,7 +137,7 @@ jobs:
101137
run: |
102138
nohup make start-anvil-with-contracts-deployed > nohup.out 2>&1 &
103139
- name: Install EigenLayer CLI
104-
uses: actions/checkout@v4
140+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
105141
with:
106142
path: eigenlayer-cli
107143
- name: Install less
@@ -163,17 +199,29 @@ jobs:
163199
name: Integration Test - User Commands
164200
runs-on: ubuntu-latest
165201
steps:
166-
- uses: actions/setup-go@v4
202+
- uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911
203+
with:
204+
egress-policy: block
205+
allowed-endpoints: >
206+
api.github.com:443
207+
ghcr.io:443
208+
github.com:443
209+
pkg-containers.githubusercontent.com:443
210+
proxy.golang.org:443
211+
release-assets.githubusercontent.com:443
212+
storage.googleapis.com:443
213+
sum.golang.org:443
214+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
167215
with:
168216
go-version: '1.21'
169217

170218
- name: Install Foundry
171-
uses: foundry-rs/foundry-toolchain@v1
219+
uses: foundry-rs/foundry-toolchain@8f1998e9878d786675189ef566a2e4bf24869773 # v1.2.0
172220
with:
173221
version: nightly-c4a984fbf2c48b793c8cd53af84f56009dd1070c
174222

175223
- name: Checkout eigensdk-go
176-
uses: actions/checkout@v4
224+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
177225
with:
178226
repository: layr-labs/eigensdk-go
179227
token: ${{ github.token }}
@@ -184,12 +232,12 @@ jobs:
184232
nohup make start-anvil-with-contracts-deployed > nohup.out 2>&1 &
185233
186234
- name: Install EigenLayer CLI
187-
uses: actions/checkout@v4
235+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
188236
with:
189237
path: eigenlayer-cli
190238

191239
- name: Setup BATS
192-
uses: mig4/setup-bats@v1
240+
uses: mig4/setup-bats@af9a00deb21b5d795cabfeaa8d9060410377686d # v1.2.0
193241

194242
- name: Install EigenLayer CLI
195243
run: |

.github/workflows/release.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@ jobs:
1010
name: Lint
1111
runs-on: ubuntu-22.04
1212
steps:
13-
- uses: actions/setup-go@v5
13+
- uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911
14+
with:
15+
egress-policy: audit
16+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
1417
with:
1518
go-version: "1.21"
16-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1720
- name: golangci-lint
18-
uses: golangci/golangci-lint-action@v3
21+
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.1
1922
with:
2023
working-directory: .
2124
args: --timeout 3m
@@ -27,8 +30,11 @@ jobs:
2730
go: ["1.21"]
2831
os: [ubuntu-22.04]
2932
steps:
30-
- uses: actions/checkout@v4
31-
- uses: actions/setup-go@v5
33+
- uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911
34+
with:
35+
egress-policy: audit
36+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
37+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
3238
with:
3339
go-version: ${{ matrix.go }}
3440
- run: go mod download
@@ -38,17 +44,20 @@ jobs:
3844
needs: [lint, test]
3945
runs-on: ubuntu-22.04
4046
steps:
47+
- uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911
48+
with:
49+
egress-policy: audit
4150
- name: Git checkout
42-
uses: actions/checkout@v4
51+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4352
with:
4453
fetch-depth: 0
4554
path: eigenlayer-cli
4655
- name: Set up Go
47-
uses: actions/setup-go@v5
56+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
4857
with:
4958
go-version: "1.21"
5059
- name: Run GoReleaser
51-
uses: goreleaser/goreleaser-action@v6
60+
uses: goreleaser/goreleaser-action@286f3b13755c3b29d1dcb9c4edf51fcc83fa2e73 # v6.1.0
5261
with:
5362
distribution: goreleaser
5463
version: latest

.github/workflows/tests.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,19 @@ jobs:
1111
name: Unit Test
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
15-
- uses: actions/setup-go@v4
14+
- uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911
15+
with:
16+
egress-policy: block
17+
allowed-endpoints: >
18+
api.github.com:443
19+
github.com:443
20+
proxy.golang.org:443
21+
raw.githubusercontent.com:443
22+
release-assets.githubusercontent.com:443
23+
storage.googleapis.com:443
24+
sum.golang.org:443
25+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
1627
with:
1728
go-version: '1.21'
1829
- name: Unit Test

0 commit comments

Comments
 (0)