2828 matrix : ${{ steps.set-matrix.outputs.matrix }}
2929 steps :
3030 - name : Checkout repository
31- uses : actions/checkout@v6
31+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3232
3333 - id : set-matrix
3434 env :
4747 group : ${{ github.workflow }}-${{ github.job }}-${{matrix.name}}-${{ github.head_ref || github.run_id }}
4848 cancel-in-progress : true
4949 runs-on :
50- group : aws-highmemory-32-plus-priv
50+ group : ${{ matrix.platform == 'linux/arm64' && ' aws-r8g-8xl-plus-nix' || 'aws- highmemory-32-plus-priv' }}
5151 permissions :
5252 contents : write
5353 packages : write
@@ -57,45 +57,45 @@ jobs:
5757 security-events : write
5858 steps :
5959 - name : Checkout repository
60- uses : actions/checkout@v6
60+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6161 with :
6262 submodules : true
6363
6464 - name : Initialize Docker Buildx
65- uses : docker/setup-buildx-action@v3
65+ uses : docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
6666 with :
6767 install : true
6868 buildkitd-config : /tmp/buildkitd.toml
6969
7070 - name : Configure sccache
71- uses : actions/github-script@v8
71+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
7272 with :
7373 script : |
7474 core.exportVariable('ACTIONS_RESULTS_URL', process.env.ACTIONS_RESULTS_URL || '');
7575 core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
7676
7777 - name : Inject slug/short variables
78- uses : rlespinasse/github-slug-action@v4
78+ uses : rlespinasse/github-slug-action@797d68864753cbceedc271349d402da4590e6302 # v4
7979
8080 - name : Login to internal Container Registry
8181 if : github.event_name != 'pull_request'
82- uses : docker/login-action@v3
82+ uses : docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
8383 with :
8484 username : ${{ secrets.REGISTRY_USERNAME }}
8585 password : ${{ secrets.REGISTRY_PASSWORD }}
8686 registry : registry.internal.huggingface.tech
8787
8888 - name : Login to GitHub Container Registry
8989 if : github.event_name != 'pull_request'
90- uses : docker/login-action@v3
90+ uses : docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
9191 with :
9292 registry : ghcr.io
9393 username : ${{ github.actor }}
9494 password : ${{ secrets.GITHUB_TOKEN }}
9595
9696 - name : configure aws credentials
9797 id : aws-creds
98- uses : aws-actions/configure-aws-credentials@v5.1.1
98+ uses : aws-actions/configure-aws-credentials@61815dcd50bd041e203e49132bacad1fd04d2708 # v5.1.1
9999 with :
100100 role-to-assume : ${{ secrets.AWS_ROLE_GITHUB_BUILDX_CACHE }}
101101 role-duration-seconds : 7200
@@ -104,7 +104,7 @@ jobs:
104104
105105 - name : Extract metadata (tags, labels) for Docker
106106 id : meta
107- uses : docker/metadata-action@v5
107+ uses : docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
108108 with :
109109 images : |
110110 registry.internal.huggingface.tech/api-inference/text-embeddings-inference
@@ -119,14 +119,14 @@ jobs:
119119
120120 - name : Build and push Docker image
121121 id : build-and-push
122- uses : docker/build-push-action@v6
122+ uses : docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
123123 env :
124124 DOCKER_BUILD_SUMMARY : false
125125 with :
126126 context : .
127127 file : ${{ matrix.dockerfile }}
128128 push : ${{ github.event_name != 'pull_request' }}
129- platforms : ${{ matrix.platforms || 'linux/amd64' }}
129+ platforms : ${{ matrix.platform || 'linux/amd64' }}
130130 build-args : |
131131 SCCACHE_GHA_ENABLED=${{ matrix.sccache }}
132132 CUDA_COMPUTE_CAP=${{ matrix.cudaComputeCap }}
@@ -144,7 +144,7 @@ jobs:
144144 - name : Extract metadata (tags, labels) for Docker
145145 id : meta-grpc
146146 if : ${{ matrix.grpc }}
147- uses : docker/metadata-action@v5
147+ uses : docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
148148 with :
149149 images : |
150150 registry.internal.huggingface.tech/api-inference/text-embeddings-inference
@@ -160,15 +160,15 @@ jobs:
160160 - name : Build and push Docker image
161161 id : build-and-push-grpc
162162 if : ${{ matrix.grpc }}
163- uses : docker/build-push-action@v6
163+ uses : docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
164164 env :
165165 DOCKER_BUILD_SUMMARY : false
166166 with :
167167 context : .
168168 target : grpc
169169 file : ${{ matrix.dockerfile }}
170170 push : ${{ github.event_name != 'pull_request' }}
171- platforms : ${{ matrix.platforms || 'linux/amd64' }}
171+ platforms : ${{ matrix.platform || 'linux/amd64' }}
172172 build-args : |
173173 SCCACHE_GHA_ENABLED=${{ matrix.sccache }}
174174 CUDA_COMPUTE_CAP=${{ matrix.cudaComputeCap }}
0 commit comments