Skip to content

Commit 342487f

Browse files
authored
Merge branch 'main' into amd-doc
2 parents cc5c0fb + f4483f3 commit 342487f

9 files changed

Lines changed: 32 additions & 32 deletions

.github/workflows/build.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
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:
@@ -47,7 +47,7 @@ jobs:
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 }}

.github/workflows/build_documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
build:
14-
uses: huggingface/doc-builder/.github/workflows/build_main_documentation.yml@main
14+
uses: huggingface/doc-builder/.github/workflows/build_main_documentation.yml@90b4ee2c10b81b5c1a6367c4e6fc9e2fb510a7e3 # main
1515
with:
1616
commit_sha: ${{ github.sha }}
1717
package: text-embeddings-inference

.github/workflows/build_pr_documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ concurrency:
1111

1212
jobs:
1313
build:
14-
uses: huggingface/doc-builder/.github/workflows/build_pr_documentation.yml@main
14+
uses: huggingface/doc-builder/.github/workflows/build_pr_documentation.yml@90b4ee2c10b81b5c1a6367c4e6fc9e2fb510a7e3 # main
1515
with:
1616
commit_sha: ${{ github.event.pull_request.head.sha }}
1717
pr_number: ${{ github.event.number }}

.github/workflows/integration-test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
group: itac-bm-emr-gaudi3-dell-1gaudi
1515
steps:
1616
- name: Checkout repository
17-
uses: actions/checkout@v6
17+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1818

1919
- name: Install uv
20-
uses: astral-sh/setup-uv@v5
20+
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
2121

2222
- name: Build Docker image for HPU
2323
run: |

.github/workflows/linting.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ jobs:
1717
SCCACHE: 0.10.0
1818

1919
steps:
20-
- uses: actions/checkout@v6
20+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2121
- name: Install Rust
22-
uses: actions-rust-lang/setup-rust-toolchain@v1.15.2
22+
uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1.15.2
2323
with:
2424
components: rustfmt, clippy
2525
- name: Install Protoc
26-
uses: arduino/setup-protoc@v1
26+
uses: arduino/setup-protoc@149f6c87b92550901b26acd1632e11c3662e381f # v1
2727
- name: Clean unused files
2828
run: |
2929
sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android
@@ -33,15 +33,15 @@ jobs:
3333
curl -fsSL https://github.com/mozilla/sccache/releases/download/v$SCCACHE/sccache-v$SCCACHE-x86_64-unknown-linux-musl.tar.gz | tar -xzv --strip-components=1 -C /usr/local/bin sccache-v$SCCACHE-x86_64-unknown-linux-musl/sccache
3434
chmod +x /usr/local/bin/sccache
3535
- name: configure sccache
36-
uses: actions/github-script@v8
36+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
3737
with:
3838
script: |
3939
core.exportVariable('ACTIONS_RESULTS_URL', process.env.ACTIONS_RESULTS_URL || '');
4040
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
4141
core.exportVariable('SCCACHE_GHA_CACHE_TO', 'sccache-${{runner.os}}-${{github.ref_name}}');
4242
core.exportVariable('SCCACHE_GHA_CACHE_FROM', 'sccache-${{runner.os}}-main,sccache-${{runner.os}}-');
4343
- name: cargo registry cache
44-
uses: actions/cache@v5
44+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
4545
with:
4646
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}-${{ github.sha }}
4747
restore-keys: |

.github/workflows/matrix.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"runOn": "always",
7070
"sccache": true,
7171
"cudaComputeCap": 121,
72-
"platforms": "linux/arm64",
72+
"platform": "linux/arm64",
7373
"grpc": true,
7474
"dockerfile": "Dockerfile-cuda"
7575
},
@@ -94,7 +94,7 @@
9494
"imageNamePrefix": "cpu-arm64-",
9595
"runOn": "always",
9696
"sccache": true,
97-
"platforms": "linux/arm64",
97+
"platform": "linux/arm64",
9898
"grpc": true,
9999
"dockerfile": "Dockerfile-arm64"
100100
},

.github/workflows/test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
group: aws-highmemory-32-plus-priv
2929
steps:
3030
- name: Checkout repository
31-
uses: actions/checkout@v6
32-
- uses: actions-rust-lang/setup-rust-toolchain@v1.15.2
31+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
32+
- uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1.15.2
3333
- name: Run sccache-cache
34-
uses: mozilla-actions/sccache-action@v0.0.9
34+
uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
3535
with:
3636
version: "v0.10.0"
3737
- name: Compile project

.github/workflows/trufflehog.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout code
11-
uses: actions/checkout@v6
11+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1212
with:
1313
fetch-depth: 0
1414
- name: Secret Scanning
15-
uses: trufflesecurity/trufflehog@main
15+
uses: trufflesecurity/trufflehog@6bd2d14f7a4bc1e569fa3550efa7ec632a4fa67b # main
1616
with:
1717
extra_args: --results=verified,unknown --exclude-detectors=postgres

.github/workflows/upload_pr_documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build:
11-
uses: huggingface/doc-builder/.github/workflows/upload_pr_documentation.yml@main
11+
uses: huggingface/doc-builder/.github/workflows/upload_pr_documentation.yml@90b4ee2c10b81b5c1a6367c4e6fc9e2fb510a7e3 # main
1212
with:
1313
package_name: text-embeddings-inference
1414
secrets:

0 commit comments

Comments
 (0)