4040
4141 - name : Get Conan
4242 id : conan
43- uses : turtlebrowser/get-conan@main
43+ uses : turtlebrowser/get-conan@c171f295f3f507360ee018736a6608731aa2109d # v1.2
4444 with :
4545 version : 1.66.0
4646
9696 run : cmake -E make_directory ${{github.workspace}}/build
9797
9898 - name : Get Conan
99- # You may pin to the exact commit or the version.
100- # uses: turtlebrowser/get-conan@4dc7e6dd45c8b1e02e909979d7cfc5ebba6ddbe2
10199 id : conan
102- uses : turtlebrowser/get-conan@main
100+ uses : turtlebrowser/get-conan@c171f295f3f507360ee018736a6608731aa2109d # v1.2
103101 with :
104102 version : 1.66.0
105103
@@ -163,10 +161,8 @@ jobs:
163161 run : cmake -E make_directory ${{github.workspace}}\build
164162
165163 - name : Get Conan
166- # You may pin to the exact commit or the version.
167- # uses: turtlebrowser/get-conan@4dc7e6dd45c8b1e02e909979d7cfc5ebba6ddbe2
168164 id : conan
169- uses : turtlebrowser/get-conan@main
165+ uses : turtlebrowser/get-conan@c171f295f3f507360ee018736a6608731aa2109d # v1.2
170166 with :
171167 version : 1.66.0
172168
@@ -326,14 +322,14 @@ jobs:
326322 run : echo ${{ env.REF_TAG }}
327323
328324 - name : Login to GitHub Container Registry
329- uses : docker/login-action@v3
325+ uses : docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
330326 with :
331327 registry : ghcr.io
332328 username : ${{ github.repository_owner }}
333329 password : ${{ secrets.GITHUB_TOKEN }}
334330
335331 - name : Login to Docker Hub
336- uses : docker/login-action@v3
332+ uses : docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
337333 with :
338334 username : ${{ secrets.ORB_DOCKERHUB_USERNAME }}
339335 password : ${{ secrets.ORB_DOCKERHUB_TOKEN }}
@@ -349,17 +345,17 @@ jobs:
349345 sed -i -e "s/CP_URL/$ESCAPED_REPLACE/g" docker/run.sh
350346
351347 - name : Set up QEMU
352- uses : docker/setup-qemu-action@v2
348+ uses : docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
353349
354350 - name : Set up Docker Buildx
355351 id : buildx
356- uses : docker/setup-buildx-action@v2
352+ uses : docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
357353
358354 - name : Build + push - pktvisor (multi-arch)
359355 env :
360356 IMAGE_NAME1 : orbcommunity/pktvisor
361357 IMAGE_NAME2 : ghcr.io/orb-community/pktvisor
362- uses : docker/build-push-action@v3
358+ uses : docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
363359 with :
364360 builder : ${{ steps.buildx.outputs.name }}
365361 context : .
@@ -391,7 +387,7 @@ jobs:
391387
392388 - name : Get Conan
393389 id : conan
394- uses : turtlebrowser/get-conan@main
390+ uses : turtlebrowser/get-conan@c171f295f3f507360ee018736a6608731aa2109d # v1.2
395391 with :
396392 version : 1.66.0
397393
@@ -441,7 +437,7 @@ jobs:
441437 path : ${{github.workspace}}/${{ env.BINARY_NAME }}
442438
443439 - name : Login to Docker Hub
444- uses : docker/login-action@v3
440+ uses : docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
445441 with :
446442 username : ${{ secrets.ORB_DOCKERHUB_USERNAME }}
447443 password : ${{ secrets.ORB_DOCKERHUB_TOKEN }}
@@ -470,7 +466,7 @@ jobs:
470466
471467 package-arm64 :
472468 needs : [ unit-tests-linux ]
473- runs-on : [ linux, ARM64]
469+ runs-on : ubuntu-latest
474470 if : github.event_name != 'pull_request'
475471 steps :
476472 - name : cleanup # https://github.com/actions/checkout/issues/211
@@ -519,18 +515,18 @@ jobs:
519515 echo "DRAFT=true" >> $GITHUB_ENV
520516
521517 - name : Login to GitHub Container Registry
522- uses : docker/login-action@v3
518+ uses : docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
523519 with :
524520 registry : ghcr.io
525521 username : ${{ github.repository_owner }}
526522 password : ${{ secrets.GITHUB_TOKEN }}
527523
528524 - name : Set up QEMU
529- uses : docker/setup-qemu-action@v2
525+ uses : docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
530526
531527 - name : Set up Docker Buildx
532528 id : buildx
533- uses : docker/setup-buildx-action@v2
529+ uses : docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
534530
535531 - name : Replace token
536532 run : |
@@ -546,7 +542,7 @@ jobs:
546542 id : docker_build
547543 env :
548544 IMAGE_NAME : ghcr.io/orb-community/pktvisor
549- uses : docker/build-push-action@v3
545+ uses : docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
550546 with :
551547 builder : ${{ steps.buildx.outputs.name }}
552548 context : .
@@ -564,12 +560,12 @@ jobs:
564560 docker push ${{ env.IMAGE_NAME }}:arm64-${{needs.unit-tests-linux.outputs.commit_hash}}
565561
566562 pushing-manifests :
567- needs : [ unit-tests-linux ]
563+ needs : [ unit-tests-linux, package-amd64, package-arm64 ]
568564 runs-on : ubuntu-latest
569565 if : github.event_name != 'pull_request'
570566 steps :
571567 - name : Login to GitHub Container Registry
572- uses : docker/login-action@v3
568+ uses : docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
573569 with :
574570 registry : ghcr.io
575571 username : ${{ github.repository_owner }}
@@ -615,23 +611,23 @@ jobs:
615611
616612
617613 - name : Delete arm64 images from ghcr.io
618- uses : bots-house/ghcr-delete-image-action@v1.0 .0
614+ uses : bots-house/ghcr-delete-image-action@3827559c68cb4dcdf54d813ea9853be6d468d3a4 # v1.1 .0
619615 with :
620616 owner : orb-community
621617 name : pktvisor
622618 token : ${{ secrets.GITHUB_TOKEN }}
623619 tag : arm64-${{needs.unit-tests-linux.outputs.commit_hash}}
624620
625621 - name : Delete amd64 images from ghcr.io
626- uses : bots-house/ghcr-delete-image-action@v1.0 .0
622+ uses : bots-house/ghcr-delete-image-action@3827559c68cb4dcdf54d813ea9853be6d468d3a4 # v1.1 .0
627623 with :
628624 owner : orb-community
629625 name : pktvisor
630626 token : ${{ secrets.GITHUB_TOKEN }}
631627 tag : amd64-${{needs.unit-tests-linux.outputs.commit_hash}}
632628
633629 - name : Delete latest-develop images from ghcr.io
634- uses : bots-house/ghcr-delete-image-action@v1.0 .0
630+ uses : bots-house/ghcr-delete-image-action@3827559c68cb4dcdf54d813ea9853be6d468d3a4 # v1.1 .0
635631 with :
636632 owner : orb-community
637633 name : pktvisor
0 commit comments