27
27
runs-on : ubuntu-latest
28
28
steps :
29
29
- name : Checkout code
30
- uses : actions/checkout@v3
30
+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
31
31
- name : Setup Golang
32
- uses : actions/setup-go@v3
32
+ uses : actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
33
33
with :
34
34
go-version : ${{ env.GOLANG_VERSION }}
35
35
- name : Download all Go modules
@@ -45,13 +45,13 @@ jobs:
45
45
runs-on : ubuntu-latest
46
46
steps :
47
47
- name : Checkout code
48
- uses : actions/checkout@v3
48
+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
49
49
- name : Setup Golang
50
- uses : actions/setup-go@v3
50
+ uses : actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
51
51
with :
52
52
go-version : ${{ env.GOLANG_VERSION }}
53
53
- name : Restore go build cache
54
- uses : actions/cache@v3
54
+ uses : actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
55
55
with :
56
56
path : ~/.cache/go-build
57
57
key : ${{ runner.os }}-go-build-v1-${{ github.run_id }}
@@ -69,13 +69,13 @@ jobs:
69
69
runs-on : ubuntu-latest
70
70
steps :
71
71
- name : Checkout code
72
- uses : actions/checkout@v3
72
+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
73
73
- name : Setup Golang
74
- uses : actions/setup-go@v3
74
+ uses : actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
75
75
with :
76
76
go-version : ${{ env.GOLANG_VERSION }}
77
77
- name : Run golangci-lint
78
- uses : golangci/golangci-lint-action@v3
78
+ uses : golangci/golangci-lint-action@0ad9a0988b3973e851ab0a07adf248ec2e100376 # v3.3.1
79
79
with :
80
80
version : v1.45.2
81
81
args : --timeout 10m --exclude SA5011 --verbose
@@ -92,11 +92,11 @@ jobs:
92
92
- name : Create checkout directory
93
93
run : mkdir -p ~/go/src/github.com/argoproj
94
94
- name : Checkout code
95
- uses : actions/checkout@v3
95
+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
96
96
- name : Create symlink in GOPATH
97
97
run : ln -s $(pwd) ~/go/src/github.com/argoproj/argo-cd
98
98
- name : Setup Golang
99
- uses : actions/setup-go@v3
99
+ uses : actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
100
100
with :
101
101
go-version : ${{ env.GOLANG_VERSION }}
102
102
- name : Install required packages
@@ -116,7 +116,7 @@ jobs:
116
116
run : |
117
117
echo "/usr/local/bin" >> $GITHUB_PATH
118
118
- name : Restore go build cache
119
- uses : actions/cache@v3
119
+ uses : actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
120
120
with :
121
121
path : ~/.cache/go-build
122
122
key : ${{ runner.os }}-go-build-v1-${{ github.run_id }}
@@ -133,12 +133,12 @@ jobs:
133
133
- name : Run all unit tests
134
134
run : make test-local
135
135
- name : Generate code coverage artifacts
136
- uses : actions/upload-artifact@v3
136
+ uses : actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # v3.1.1
137
137
with :
138
138
name : code-coverage
139
139
path : coverage.out
140
140
- name : Generate test results artifacts
141
- uses : actions/upload-artifact@v3
141
+ uses : actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # v3.1.1
142
142
with :
143
143
name : test-results
144
144
path : test-results/
@@ -155,11 +155,11 @@ jobs:
155
155
- name : Create checkout directory
156
156
run : mkdir -p ~/go/src/github.com/argoproj
157
157
- name : Checkout code
158
- uses : actions/checkout@v3
158
+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
159
159
- name : Create symlink in GOPATH
160
160
run : ln -s $(pwd) ~/go/src/github.com/argoproj/argo-cd
161
161
- name : Setup Golang
162
- uses : actions/setup-go@v3
162
+ uses : actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
163
163
with :
164
164
go-version : ${{ env.GOLANG_VERSION }}
165
165
- name : Install required packages
@@ -179,7 +179,7 @@ jobs:
179
179
run : |
180
180
echo "/usr/local/bin" >> $GITHUB_PATH
181
181
- name : Restore go build cache
182
- uses : actions/cache@v3
182
+ uses : actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
183
183
with :
184
184
path : ~/.cache/go-build
185
185
key : ${{ runner.os }}-go-build-v1-${{ github.run_id }}
@@ -196,7 +196,7 @@ jobs:
196
196
- name : Run all unit tests
197
197
run : make test-race-local
198
198
- name : Generate test results artifacts
199
- uses : actions/upload-artifact@v3
199
+ uses : actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # v3.1.1
200
200
with :
201
201
name : race-results
202
202
path : test-results/
@@ -206,9 +206,9 @@ jobs:
206
206
runs-on : ubuntu-latest
207
207
steps :
208
208
- name : Checkout code
209
- uses : actions/checkout@v3
209
+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
210
210
- name : Setup Golang
211
- uses : actions/setup-go@v3
211
+ uses : actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
212
212
with :
213
213
go-version : ${{ env.GOLANG_VERSION }}
214
214
- name : Create symlink in GOPATH
@@ -250,14 +250,14 @@ jobs:
250
250
runs-on : ubuntu-latest
251
251
steps :
252
252
- name : Checkout code
253
- uses : actions/checkout@v3
253
+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
254
254
- name : Setup NodeJS
255
- uses : actions/setup-node@v3
255
+ uses : actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
256
256
with :
257
257
node-version : ' 12.18.4'
258
258
- name : Restore node dependency cache
259
259
id : cache-dependencies
260
- uses : actions/cache@v3
260
+ uses : actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
261
261
with :
262
262
path : ui/node_modules
263
263
key : ${{ runner.os }}-node-dep-v2-${{ hashFiles('**/yarn.lock') }}
@@ -287,12 +287,12 @@ jobs:
287
287
sonar_secret : ${{ secrets.SONAR_TOKEN }}
288
288
steps :
289
289
- name : Checkout code
290
- uses : actions/checkout@v3
290
+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
291
291
with :
292
292
fetch-depth : 0
293
293
- name : Restore node dependency cache
294
294
id : cache-dependencies
295
- uses : actions/cache@v3
295
+ uses : actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
296
296
with :
297
297
path : ui/node_modules
298
298
key : ${{ runner.os }}-node-dep-v2-${{ hashFiles('**/yarn.lock') }}
@@ -303,16 +303,16 @@ jobs:
303
303
run : |
304
304
mkdir -p test-results
305
305
- name : Get code coverage artifiact
306
- uses : actions/download-artifact@v3
306
+ uses : actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # v3.0.1
307
307
with :
308
308
name : code-coverage
309
309
- name : Get test result artifact
310
- uses : actions/download-artifact@v3
310
+ uses : actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # v3.0.1
311
311
with :
312
312
name : test-results
313
313
path : test-results
314
314
- name : Upload code coverage information to codecov.io
315
- uses : codecov/codecov-action@v3
315
+ uses : codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
316
316
with :
317
317
file : coverage.out
318
318
- name : Perform static code analysis using SonarCloud
@@ -365,9 +365,9 @@ jobs:
365
365
GITLAB_TOKEN : ${{ secrets.E2E_TEST_GITLAB_TOKEN }}
366
366
steps :
367
367
- name : Checkout code
368
- uses : actions/checkout@v3
368
+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
369
369
- name : Setup Golang
370
- uses : actions/setup-go@v3
370
+ uses : actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
371
371
with :
372
372
go-version : ${{ env.GOLANG_VERSION }}
373
373
- name : GH actions workaround - Kill XSP4 process
@@ -385,7 +385,7 @@ jobs:
385
385
sudo chown runner $HOME/.kube/config
386
386
kubectl version
387
387
- name : Restore go build cache
388
- uses : actions/cache@v3
388
+ uses : actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
389
389
with :
390
390
path : ~/.cache/go-build
391
391
key : ${{ runner.os }}-go-build-v1-${{ github.run_id }}
@@ -441,7 +441,7 @@ jobs:
441
441
set -x
442
442
make test-e2e-local
443
443
- name : Upload e2e-server logs
444
- uses : actions/upload-artifact@v3
444
+ uses : actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # v3.1.1
445
445
with :
446
446
name : e2e-server-k8s${{ matrix.k3s-version }}.log
447
447
path : /tmp/e2e-server.log
0 commit comments