4747 run : go install github.com/goreleaser/nfpm/v2/cmd/nfpm@${{ env.NFPM_VERSION }}
4848 - name : Fix golang dependency permissions
4949 run : chmod -R 0755 ~/go/pkg/mod ~/.cache/go-build
50- - uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
50+ - uses : actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
5151 with :
5252 path : |
5353 ~/.cache/go-build
7171 with :
7272 go-version-file : ' go.mod'
7373 cache : false
74- - uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
74+ - uses : actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
7575 with :
7676 path : |
7777 ~/.cache/go-build
@@ -81,20 +81,20 @@ jobs:
8181 uses : golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
8282 with :
8383 version : v2.4.0
84+ skip-cache : true
8485
8586 vulnerability-scan :
8687 name : Vulnerability Scan
8788 uses : ./.github/workflows/vulncheck.yml
8889 permissions :
89- security-events : write
90+ contents : read
91+ security-events : write # for reporting vulnerabilities via code-scanning API
9092 with :
9193 target-branch : ${{ github.event.pull_request.base.ref || github.ref_name }}
9294
9395 unit-test :
9496 name : Unit Tests
9597 runs-on : ubuntu-22.04
96- permissions :
97- contents : write
9898 steps :
9999 - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
100100 - name : Configure Go Proxy
@@ -107,7 +107,7 @@ jobs:
107107 with :
108108 go-version-file : ' go.mod'
109109 cache : false
110- - uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
110+ - uses : actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
111111 with :
112112 path : |
113113 ~/.cache/go-build
@@ -116,7 +116,7 @@ jobs:
116116 - name : Run Unit Tests
117117 run : make unit-test
118118 - name : Uplaod Test Coverage
119- uses : codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
119+ uses : codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
120120 with :
121121 files : ./build/test/coverage.out
122122 token : ${{ secrets.CODECOV_TOKEN }}
@@ -136,7 +136,7 @@ jobs:
136136 with :
137137 go-version-file : ' go.mod'
138138 cache : false
139- - uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
139+ - uses : actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
140140 with :
141141 path : |
142142 ~/.cache/go-build
@@ -168,7 +168,7 @@ jobs:
168168 run : go install github.com/goreleaser/nfpm/v2/cmd/nfpm@${{ env.NFPM_VERSION }}
169169 - name : Fix golang dependency permissions
170170 run : chmod -R 0755 ~/go/pkg/mod ~/.cache/go-build
171- - uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
171+ - uses : actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
172172 with :
173173 path : |
174174 ~/.cache/go-build
@@ -178,7 +178,7 @@ jobs:
178178 run : |
179179 make clean local-deb-package local-rpm-package local-apk-package
180180 - name : Upload Artifacts
181- uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5 .0.0
181+ uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
182182 with :
183183 name : nginx-agent-unsigned-snapshots
184184 path : build
@@ -209,14 +209,14 @@ jobs:
209209 with :
210210 go-version-file : ' go.mod'
211211 cache : false
212- - uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
212+ - uses : actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
213213 with :
214214 path : |
215215 ~/.cache/go-build
216216 ~/go/pkg/mod
217217 key : ${{ runner.os }}-go-
218218 - name : Download Packages
219- uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6 .0.0
219+ uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7 .0.0
220220 with :
221221 name : nginx-agent-unsigned-snapshots
222222 path : build
@@ -265,14 +265,14 @@ jobs:
265265 with :
266266 go-version-file : ' go.mod'
267267 cache : false
268- - uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
268+ - uses : actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
269269 with :
270270 path : |
271271 ~/.cache/go-build
272272 ~/go/pkg/mod
273273 key : ${{ runner.os }}-go-
274274 - name : Download Packages
275- uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6 .0.0
275+ uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7 .0.0
276276 with :
277277 name : nginx-agent-unsigned-snapshots
278278 path : build
@@ -328,14 +328,14 @@ jobs:
328328 with :
329329 go-version-file : ' go.mod'
330330 cache : false
331- - uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
331+ - uses : actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
332332 with :
333333 path : |
334334 ~/.cache/go-build
335335 ~/go/pkg/mod
336336 key : ${{ runner.os }}-go-
337337 - name : Download Packages
338- uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6 .0.0
338+ uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7 .0.0
339339 with :
340340 name : nginx-agent-unsigned-snapshots
341341 path : build
@@ -401,14 +401,14 @@ jobs:
401401 with :
402402 go-version-file : ' go.mod'
403403 cache : false
404- - uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
404+ - uses : actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
405405 with :
406406 path : |
407407 ~/.cache/go-build
408408 ~/go/pkg/mod
409409 key : ${{ runner.os }}-go-
410410 - name : Download Packages
411- uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6 .0.0
411+ uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7 .0.0
412412 with :
413413 name : nginx-agent-unsigned-snapshots
414414 path : build
@@ -473,14 +473,14 @@ jobs:
473473 with :
474474 go-version-file : ' go.mod'
475475 cache : false
476- - uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
476+ - uses : actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
477477 with :
478478 path : |
479479 ~/.cache/go-build
480480 ~/go/pkg/mod
481481 key : ${{ runner.os }}-go-
482482 - name : Download Packages
483- uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6 .0.0
483+ uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7 .0.0
484484 with :
485485 name : nginx-agent-unsigned-snapshots
486486 path : build
@@ -546,14 +546,14 @@ jobs:
546546 with :
547547 go-version-file : ' go.mod'
548548 cache : false
549- - uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
549+ - uses : actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
550550 with :
551551 path : |
552552 ~/.cache/go-build
553553 ~/go/pkg/mod
554554 key : ${{ runner.os }}-go-
555555 - name : Download Packages
556- uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6 .0.0
556+ uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7 .0.0
557557 with :
558558 name : nginx-agent-unsigned-snapshots
559559 path : build
@@ -591,7 +591,7 @@ jobs:
591591 runs-on : ubuntu-22.04
592592 needs : build-unsigned-snapshot
593593 permissions :
594- contents : write
594+ contents : write # Needed for pushing benchmark results to github branch
595595 steps :
596596 - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
597597 - name : Configure Go Proxy
@@ -604,7 +604,7 @@ jobs:
604604 with :
605605 go-version-file : ' go.mod'
606606 cache : false
607- - uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
607+ - uses : actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
608608 with :
609609 path : |
610610 ~/.cache/go-build
@@ -633,7 +633,7 @@ jobs:
633633 name : Load Tests
634634 if : ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.head_ref, 'dependabot-') }}
635635 permissions :
636- contents : write
636+ contents : write # Needed for pushing benchmark results to github branch
637637 runs-on : ubuntu-22.04
638638 needs : build-unsigned-snapshot
639639 steps :
@@ -643,21 +643,21 @@ jobs:
643643 go-version-file : ' go.mod'
644644 cache : false
645645
646- - uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
646+ - uses : actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
647647 with :
648648 path : |
649649 ~/.cache/go-build
650650 ~/go/pkg/mod
651651 key : ${{ runner.os }}-go-
652652
653653 - name : Download Packages
654- uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6 .0.0
654+ uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7 .0.0
655655 with :
656656 name : nginx-agent-unsigned-snapshots
657657 path : build
658658
659659 - name : Set up Docker Build
660- uses : docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
660+ uses : docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
661661
662662 - name : Set env
663663 run : echo "GO_VERSION=$(cat go.mod | grep toolchain | sed 's/toolchain //; s/go//')" >> $GITHUB_ENV
@@ -687,7 +687,7 @@ jobs:
687687 echo "$results"
688688
689689 - name : Upload Load Test Results
690- uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5 .0.0
690+ uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
691691 with :
692692 name : load-test-results
693693 path : benchmarks.json
0 commit comments