@@ -40,13 +40,13 @@ jobs:
40
40
k8s_latest : ${{ steps.vars.outputs.k8s_latest }}
41
41
steps :
42
42
- name : Checkout Repository
43
- uses : actions/checkout@v3
43
+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
44
44
- name : Output Variables
45
45
id : vars
46
46
run : |
47
47
echo "k8s_latest=$(grep -m1 'FROM kindest/node' <tests/docker/Dockerfile | awk -F'[:v]' '{print $3}')" >> $GITHUB_OUTPUT
48
48
- name : Setup Golang Environment
49
- uses : actions/setup-go@v3
49
+ uses : actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
50
50
with :
51
51
go-version-file : go.mod
52
52
cache : true
@@ -71,16 +71,16 @@ jobs:
71
71
needs : checks
72
72
steps :
73
73
- name : Checkout Repository
74
- uses : actions/checkout@v3
74
+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
75
75
with :
76
76
fetch-depth : 0
77
77
- name : Setup Golang Environment
78
- uses : actions/setup-go@v3
78
+ uses : actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
79
79
with :
80
80
go-version-file : go.mod
81
81
cache : true
82
82
- name : Build binary
83
- uses : goreleaser/goreleaser-action@v3
83
+ uses : goreleaser/goreleaser-action@b508e2e3ef3b19d4e4146d4f8fb3ba9db644a757 # v3.2.0
84
84
with :
85
85
version : latest
86
86
args : build --snapshot --rm-dist --single-target --id kubernetes-ingress
89
89
GOPATH : ${{ needs.checks.outputs.go_path }}
90
90
91
91
- name : Store Artifacts in Cache
92
- uses : actions/cache@v3
92
+ uses : actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
93
93
with :
94
94
path : ${{ github.workspace }}/dist
95
95
key : nginx-ingress-${{ github.run_id }}-${{ github.run_number }}-single
@@ -100,16 +100,16 @@ jobs:
100
100
needs : checks
101
101
steps :
102
102
- name : Checkout Repository
103
- uses : actions/checkout@v3
103
+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
104
104
- name : Setup Golang Environment
105
- uses : actions/setup-go@v3
105
+ uses : actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
106
106
with :
107
107
go-version-file : go.mod
108
108
cache : true
109
109
- name : Run Tests
110
110
run : make cover
111
111
- name : Upload coverage to Codecov
112
- uses : codecov/codecov-action@v3
112
+ uses : codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
113
113
with :
114
114
files : ./coverage.txt
115
115
@@ -126,16 +126,16 @@ jobs:
126
126
type : plus
127
127
steps :
128
128
- name : Checkout Repository
129
- uses : actions/checkout@v3
129
+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
130
130
- name : Fetch Cached Artifacts
131
- uses : actions/cache@v3
131
+ uses : actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
132
132
with :
133
133
path : ${{ github.workspace }}/dist
134
134
key : nginx-ingress-${{ github.run_id }}-${{ github.run_number }}-single
135
135
- name : Docker Buildx
136
- uses : docker/setup-buildx-action@v2
136
+ uses : docker/setup-buildx-action@8c0edbc76e98fa90f69d9a2c020dcb50019dc325 # v2.2.1
137
137
- name : Build Docker Image ${{ matrix.image }}
138
- uses : docker/build-push-action@v3
138
+ uses : docker/build-push-action@c56af957549030174b10d6867f20e78cfd7debc5 # v3.2.0
139
139
with :
140
140
file : build/Dockerfile
141
141
context : ' .'
@@ -230,7 +230,7 @@ jobs:
230
230
matrix : ${{ fromJSON(needs.setup-matrix.outputs.matrix) }}
231
231
steps :
232
232
- name : Checkout Repository
233
- uses : actions/checkout@v3
233
+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
234
234
- name : Run Smoke Tests
235
235
id : smoke-tests
236
236
uses : ./.github/actions/smoke-tests
@@ -241,7 +241,7 @@ jobs:
241
241
nginx-crt : ${{ contains(matrix.images.image, 'nap') && secrets.NGINX_AP_CRT || secrets.NGINX_CRT }}
242
242
nginx-key : ${{ contains(matrix.images.image, 'nap') && secrets.NGINX_AP_KEY || secrets.NGINX_KEY }}
243
243
- name : Upload Test Results
244
- uses : actions/upload-artifact@v3
244
+ uses : actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # v3.1.1
245
245
with :
246
246
name : ${{ steps.smoke-tests.outputs.test-results-name }}
247
247
path : ${{ github.workspace }}/tests/${{ steps.smoke-tests.outputs.test-results-name }}.html
@@ -253,21 +253,21 @@ jobs:
253
253
needs : [checks, smoke-tests, helm-tests]
254
254
steps :
255
255
- name : Checkout Repository
256
- uses : actions/checkout@v3
256
+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
257
257
with :
258
258
fetch-depth : 0
259
259
- name : Setup Golang Environment
260
- uses : actions/setup-go@v3
260
+ uses : actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
261
261
with :
262
262
go-version-file : go.mod
263
263
cache : true
264
264
265
- - uses : actions/setup-node@v3
265
+ - uses : actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
266
266
- run : npm install js-yaml
267
267
continue-on-error : true
268
268
if : startsWith(github.ref, 'refs/tags/')
269
269
- name : Publish release on tag
270
- uses : actions/github-script@v6
270
+ uses : actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # v6.3.3
271
271
continue-on-error : true
272
272
with :
273
273
github-token : ${{secrets.GITHUB_TOKEN}}
@@ -306,10 +306,10 @@ jobs:
306
306
if : startsWith(github.ref, 'refs/tags/')
307
307
308
308
- name : Download Syft
309
- uses :
anchore/sbom-action/[email protected]
309
+ uses : anchore/sbom-action/download-syft@06e109483e6aa305a2b2395eabae554e51530e1d # v0.13.1
310
310
311
311
- name : Build binaries
312
- uses : goreleaser/goreleaser-action@v3
312
+ uses : goreleaser/goreleaser-action@b508e2e3ef3b19d4e4146d4f8fb3ba9db644a757 # v3.2.0
313
313
with :
314
314
version : latest
315
315
args : ${{ startsWith(github.ref, 'refs/tags/') && 'release' || 'build --snapshot' }} ${{ github.event_name == 'pull_request' && '--single-target' || '' }} --rm-dist
@@ -330,7 +330,7 @@ jobs:
330
330
AZURE_BUCKET_NAME : ${{ secrets.AZURE_BUCKET_NAME }}
331
331
332
332
- name : Store Artifacts in Cache
333
- uses : actions/cache@v3
333
+ uses : actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
334
334
with :
335
335
path : ${{ github.workspace }}/dist
336
336
key : nginx-ingress-${{ github.run_id }}-${{ github.run_number }}-multi
@@ -400,7 +400,7 @@ jobs:
400
400
if : ${{ github.event_name == 'push' }}
401
401
steps :
402
402
- name : Checkout Repository
403
- uses : actions/checkout@v3
403
+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
404
404
- name : Output Variables
405
405
id : var
406
406
run : |
@@ -418,7 +418,7 @@ jobs:
418
418
- name : Package
419
419
run : helm package --version ${{ steps.var.outputs.helm_version }} ${{ env.HELM_CHART_DIR }}
420
420
- name : Upload Chart
421
- uses : actions/upload-artifact@v3
421
+ uses : actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # v3.1.1
422
422
with :
423
423
name : helm-chart
424
424
path : ${{ github.workspace }}/nginx-ingress-${{ steps.var.outputs.helm_version }}.tgz
@@ -430,15 +430,15 @@ jobs:
430
430
if : ${{ github.event_name == 'push' }}
431
431
steps :
432
432
- name : Checkout Repository
433
- uses : actions/checkout@v3
433
+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
434
434
with :
435
435
repository : nginxinc/helm-charts
436
436
fetch-depth : 1
437
437
token : ${{ secrets.NGINX_PAT }}
438
438
- name : Remove previous Chart
439
439
run : rm -f ${{ github.workspace }}/${{ needs.package-helm.outputs.type }}/nginx-ingress-${{ needs.package-helm.outputs.version }}.tgz
440
440
- name : Retrieve latest Helm Chart
441
- uses : actions/download-artifact@v3
441
+ uses : actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # v3.0.1
442
442
with :
443
443
name : helm-chart
444
444
path : ${{ github.workspace }}/${{ needs.package-helm.outputs.type }}
0 commit comments