@@ -40,13 +40,13 @@ jobs:
4040 k8s_latest : ${{ steps.vars.outputs.k8s_latest }}
4141 steps :
4242 - name : Checkout Repository
43- uses : actions/checkout@v3
43+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
4444 - name : Output Variables
4545 id : vars
4646 run : |
4747 echo "k8s_latest=$(grep -m1 'FROM kindest/node' <tests/docker/Dockerfile | awk -F'[:v]' '{print $3}')" >> $GITHUB_OUTPUT
4848 - name : Setup Golang Environment
49- uses : actions/setup-go@v3
49+ uses : actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
5050 with :
5151 go-version-file : go.mod
5252 cache : true
@@ -71,16 +71,16 @@ jobs:
7171 needs : checks
7272 steps :
7373 - name : Checkout Repository
74- uses : actions/checkout@v3
74+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
7575 with :
7676 fetch-depth : 0
7777 - name : Setup Golang Environment
78- uses : actions/setup-go@v3
78+ uses : actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
7979 with :
8080 go-version-file : go.mod
8181 cache : true
8282 - name : Build binary
83- uses : goreleaser/goreleaser-action@v3
83+ uses : goreleaser/goreleaser-action@b508e2e3ef3b19d4e4146d4f8fb3ba9db644a757 # v3.2.0
8484 with :
8585 version : latest
8686 args : build --snapshot --rm-dist --single-target --id kubernetes-ingress
8989 GOPATH : ${{ needs.checks.outputs.go_path }}
9090
9191 - name : Store Artifacts in Cache
92- uses : actions/cache@v3
92+ uses : actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
9393 with :
9494 path : ${{ github.workspace }}/dist
9595 key : nginx-ingress-${{ github.run_id }}-${{ github.run_number }}-single
@@ -100,16 +100,16 @@ jobs:
100100 needs : checks
101101 steps :
102102 - name : Checkout Repository
103- uses : actions/checkout@v3
103+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
104104 - name : Setup Golang Environment
105- uses : actions/setup-go@v3
105+ uses : actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
106106 with :
107107 go-version-file : go.mod
108108 cache : true
109109 - name : Run Tests
110110 run : make cover
111111 - name : Upload coverage to Codecov
112- uses : codecov/codecov-action@v3
112+ uses : codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
113113 with :
114114 files : ./coverage.txt
115115
@@ -126,16 +126,16 @@ jobs:
126126 type : plus
127127 steps :
128128 - name : Checkout Repository
129- uses : actions/checkout@v3
129+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
130130 - name : Fetch Cached Artifacts
131- uses : actions/cache@v3
131+ uses : actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
132132 with :
133133 path : ${{ github.workspace }}/dist
134134 key : nginx-ingress-${{ github.run_id }}-${{ github.run_number }}-single
135135 - name : Docker Buildx
136- uses : docker/setup-buildx-action@v2
136+ uses : docker/setup-buildx-action@8c0edbc76e98fa90f69d9a2c020dcb50019dc325 # v2.2.1
137137 - name : Build Docker Image ${{ matrix.image }}
138- uses : docker/build-push-action@v3
138+ uses : docker/build-push-action@c56af957549030174b10d6867f20e78cfd7debc5 # v3.2.0
139139 with :
140140 file : build/Dockerfile
141141 context : ' .'
@@ -230,7 +230,7 @@ jobs:
230230 matrix : ${{ fromJSON(needs.setup-matrix.outputs.matrix) }}
231231 steps :
232232 - name : Checkout Repository
233- uses : actions/checkout@v3
233+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
234234 - name : Run Smoke Tests
235235 id : smoke-tests
236236 uses : ./.github/actions/smoke-tests
@@ -241,7 +241,7 @@ jobs:
241241 nginx-crt : ${{ contains(matrix.images.image, 'nap') && secrets.NGINX_AP_CRT || secrets.NGINX_CRT }}
242242 nginx-key : ${{ contains(matrix.images.image, 'nap') && secrets.NGINX_AP_KEY || secrets.NGINX_KEY }}
243243 - name : Upload Test Results
244- uses : actions/upload-artifact@v3
244+ uses : actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # v3.1.1
245245 with :
246246 name : ${{ steps.smoke-tests.outputs.test-results-name }}
247247 path : ${{ github.workspace }}/tests/${{ steps.smoke-tests.outputs.test-results-name }}.html
@@ -253,21 +253,21 @@ jobs:
253253 needs : [checks, smoke-tests, helm-tests]
254254 steps :
255255 - name : Checkout Repository
256- uses : actions/checkout@v3
256+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
257257 with :
258258 fetch-depth : 0
259259 - name : Setup Golang Environment
260- uses : actions/setup-go@v3
260+ uses : actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
261261 with :
262262 go-version-file : go.mod
263263 cache : true
264264
265- - uses : actions/setup-node@v3
265+ - uses : actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
266266 - run : npm install js-yaml
267267 continue-on-error : true
268268 if : startsWith(github.ref, 'refs/tags/')
269269 - name : Publish release on tag
270- uses : actions/github-script@v6
270+ uses : actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # v6.3.3
271271 continue-on-error : true
272272 with :
273273 github-token : ${{secrets.GITHUB_TOKEN}}
@@ -306,10 +306,10 @@ jobs:
306306 if : startsWith(github.ref, 'refs/tags/')
307307
308308 - name : Download Syft
309- uses :
anchore/sbom-action/[email protected] 309+ uses : anchore/sbom-action/download-syft@06e109483e6aa305a2b2395eabae554e51530e1d # v0.13.1
310310
311311 - name : Build binaries
312- uses : goreleaser/goreleaser-action@v3
312+ uses : goreleaser/goreleaser-action@b508e2e3ef3b19d4e4146d4f8fb3ba9db644a757 # v3.2.0
313313 with :
314314 version : latest
315315 args : ${{ startsWith(github.ref, 'refs/tags/') && 'release' || 'build --snapshot' }} ${{ github.event_name == 'pull_request' && '--single-target' || '' }} --rm-dist
@@ -330,7 +330,7 @@ jobs:
330330 AZURE_BUCKET_NAME : ${{ secrets.AZURE_BUCKET_NAME }}
331331
332332 - name : Store Artifacts in Cache
333- uses : actions/cache@v3
333+ uses : actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
334334 with :
335335 path : ${{ github.workspace }}/dist
336336 key : nginx-ingress-${{ github.run_id }}-${{ github.run_number }}-multi
@@ -378,7 +378,7 @@ jobs:
378378 strategy :
379379 fail-fast : false
380380 matrix :
381- image : [debian-plus-nap]
381+ image : [debian-plus-nap, ubi-plus-nap ]
382382 platforms : ["linux/amd64"]
383383 target : [goreleaser, aws]
384384 nap_modules : [dos, waf, "waf,dos"]
@@ -400,7 +400,7 @@ jobs:
400400 if : ${{ github.event_name == 'push' }}
401401 steps :
402402 - name : Checkout Repository
403- uses : actions/checkout@v3
403+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
404404 - name : Output Variables
405405 id : var
406406 run : |
@@ -418,7 +418,7 @@ jobs:
418418 - name : Package
419419 run : helm package --version ${{ steps.var.outputs.helm_version }} ${{ env.HELM_CHART_DIR }}
420420 - name : Upload Chart
421- uses : actions/upload-artifact@v3
421+ uses : actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # v3.1.1
422422 with :
423423 name : helm-chart
424424 path : ${{ github.workspace }}/nginx-ingress-${{ steps.var.outputs.helm_version }}.tgz
@@ -430,15 +430,15 @@ jobs:
430430 if : ${{ github.event_name == 'push' }}
431431 steps :
432432 - name : Checkout Repository
433- uses : actions/checkout@v3
433+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
434434 with :
435435 repository : nginxinc/helm-charts
436436 fetch-depth : 1
437437 token : ${{ secrets.NGINX_PAT }}
438438 - name : Remove previous Chart
439439 run : rm -f ${{ github.workspace }}/${{ needs.package-helm.outputs.type }}/nginx-ingress-${{ needs.package-helm.outputs.version }}.tgz
440440 - name : Retrieve latest Helm Chart
441- uses : actions/download-artifact@v3
441+ uses : actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # v3.0.1
442442 with :
443443 name : helm-chart
444444 path : ${{ github.workspace }}/${{ needs.package-helm.outputs.type }}
0 commit comments