4343 - name : Clone the code
4444 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
4545 - name : Setup Go
46- uses : actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1 .0
46+ uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0 .0
4747 with :
4848 go-version : ${{ env.GO_VERSION }}
4949 check-latest : true
5454 echo "go-mod=$(go env GOMODCACHE)" >> "$GITHUB_OUTPUT"
5555 - name : Cache builds
5656 # https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
57- uses : actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
57+ uses : actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
5858 with :
5959 path : |
6060 ${{ steps.go-cache-paths.outputs.go-build }}
@@ -106,7 +106,7 @@ jobs:
106106 repo-token : ${{ secrets.GITHUB_TOKEN }}
107107 - name : Cache builds
108108 # https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
109- uses : actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
109+ uses : actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
110110 with :
111111 path : |
112112 ~/go/pkg/mod
@@ -121,7 +121,7 @@ jobs:
121121 with :
122122 fetch-depth : 0
123123 - name : Setup Go
124- uses : actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v2.2.0
124+ uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v2.2.0
125125 with :
126126 go-version : ${{ env.GO_VERSION }}
127127 check-latest : true
@@ -149,7 +149,7 @@ jobs:
149149 - name : Clone the code
150150 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
151151 - name : Setup Go
152- uses : actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1 .0
152+ uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0 .0
153153 with :
154154 go-version : ${{ env.GO_VERSION }}
155155 check-latest : true
@@ -186,7 +186,7 @@ jobs:
186186 with :
187187 fetch-depth : 0
188188 - name : Setup Go
189- uses : actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v2.2.0
189+ uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v2.2.0
190190 with :
191191 go-version : ${{ env.GO_VERSION }}
192192 check-latest : true
@@ -226,7 +226,7 @@ jobs:
226226 egress-policy : audit # TODO: change to 'egress-policy: block' after couple of runs
227227 - name : Cache builds
228228 # https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
229- uses : actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
229+ uses : actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
230230 with :
231231 path : |
232232 ~/go/pkg/mod
@@ -239,7 +239,7 @@ jobs:
239239 - name : Clone the code
240240 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
241241 - name : Setup Go
242- uses : actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1 .0
242+ uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0 .0
243243 with :
244244 go-version : ${{ env.GO_VERSION }}
245245 check-latest : true
@@ -266,7 +266,7 @@ jobs:
266266
267267 - name : Cache builds
268268 # https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
269- uses : actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
269+ uses : actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
270270 with :
271271 path : |
272272 ~/go/pkg/mod
@@ -281,7 +281,7 @@ jobs:
281281 with :
282282 fetch-depth : 0
283283 - name : Setup Go
284- uses : actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v2.2.0
284+ uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v2.2.0
285285 with :
286286 go-version : ${{ env.GO_VERSION }}
287287 check-latest : true
@@ -298,37 +298,17 @@ jobs:
298298 add-projects :
299299 name : add-projects
300300 runs-on : ubuntu-latest
301- needs : build-proto
302301 permissions :
303302 contents : read
304303 steps :
305304 - name : Harden Runner
306305 uses : step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v1
307306 with :
308307 egress-policy : audit # TODO: change to 'egress-policy: block' after couple of runs
309- - name : Install Protoc
310- uses : arduino/setup-protoc@149f6c87b92550901b26acd1632e11c3662e381f # v1.3.0
311- with :
312- version : ${{ env.PROTOC_VERSION }}
313- repo-token : ${{ secrets.GITHUB_TOKEN }}
314- - name : Cache builds
315- # https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
316- uses : actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
317- with :
318- path : |
319- ~/go/pkg/mod
320- ~/.cache/go-build
321- ~/Library/Caches/go-build
322- %LocalAppData%\go-build
323- key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
324- restore-keys : |
325- ${{ runner.os }}-go-
326308 - name : Clone the code
327309 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
328- with :
329- fetch-depth : 0
330310 - name : Setup Go
331- uses : actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v2.2 .0
311+ uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0 .0
332312 with :
333313 go-version : ${{ env.GO_VERSION }}
334314 check-latest : true
@@ -342,6 +322,7 @@ jobs:
342322 command : |
343323 go env -w GOFLAGS=-mod=mod
344324 make add-projects
325+ git diff --exit-code
345326 validate-projects :
346327 name : validate-projects
347328 runs-on : ubuntu-latest
@@ -363,7 +344,7 @@ jobs:
363344 with :
364345 fetch-depth : 0
365346 - name : Setup Go
366- uses : actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v2.2.0
347+ uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v2.2.0
367348 with :
368349 go-version : ${{ env.GO_VERSION }}
369350 check-latest : true
@@ -389,7 +370,7 @@ jobs:
389370 egress-policy : audit # TODO: change to 'egress-policy: block' after couple of runs
390371
391372 - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
392- - uses : actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v2.2.0
373+ - uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v2.2.0
393374 with :
394375 go-version : ${{ env.GO_VERSION }}
395376 check-latest : true
0 commit comments