@@ -15,25 +15,25 @@ jobs:
1515 runs-on : ubuntu-latest
1616 steps :
1717 - name : Checkout code
18- uses : actions/checkout@v4
18+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1919 with :
2020 fetch-depth : 0
2121
2222 - name : Install Go
23- uses : actions/setup-go@v5
23+ uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
2424 with :
2525 go-version-file : go.mod
2626
2727 - name : Run GoReleaser
28- uses : goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6
28+ uses : goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
2929 with :
3030 version : v2
3131 args : release --clean
3232 env :
3333 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3434
3535 - name : Upload binary artifact
36- uses : actions/upload-artifact@v4
36+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
3737 with :
3838 name : binary
3939 path : dist/go-ci-demo_linux_amd64_v1/${{ env.BINARY }}
@@ -49,26 +49,26 @@ jobs:
4949 runs-on : ubuntu-latest
5050 steps :
5151 - name : Checkout code
52- uses : actions/checkout@v4
52+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5353 with :
5454 fetch-depth : 0
5555
5656 - name : Set up Docker Buildx
57- uses : docker/setup-buildx-action@v3
57+ uses : docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
5858 with :
5959 driver-opts : image=moby/buildkit:latest
6060 # buildkitd-flags: --debug
6161
6262 - name : Log in to the Container registry
63- uses : docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772
63+ uses : docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
6464 with :
6565 registry : ${{ env.REGISTRY }}
6666 username : ${{ github.actor }}
6767 password : ${{ secrets.GITHUB_TOKEN }}
6868
6969 # Download the binary artifact from the build job
7070 - name : Download binary artifact
71- uses : actions/download-artifact@v4
71+ uses : actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
7272 with :
7373 name : binary
7474 path : ./docker-build
8585 echo "tag=$TAG" >> $GITHUB_OUTPUT
8686
8787 - name : Build and push Docker image
88- uses : docker/build-push-action@v5
88+ uses : docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
8989 with :
9090 context : ./docker-build
9191 build-args : |
9999
100100 - name : Tag and push latest
101101 if : steps.tag.outputs.tag != 'v99.9.9'
102- uses : docker/build-push-action@v5
102+ uses : docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
103103 with :
104104 context : ./docker-build
105105 build-args : |
0 commit comments