Skip to content

Commit 3211cd9

Browse files
authored
🔒 Pin GitHub Actions to commit SHAs (#13385)
* 🔒 pin benchmark.yml actions to commit SHAs * 🔒 pin nightly_tests.yml actions to commit SHAs * 🔒 pin build_pr_documentation.yml actions to commit SHAs * 🔒 pin typos.yml actions to commit SHAs * 🔒 pin build_docker_images.yml actions to commit SHAs * 🔒 pin build_documentation.yml actions to commit SHAs * 🔒 pin upload_pr_documentation.yml actions to commit SHAs * 🔒 pin pr_style_bot.yml actions to commit SHAs * 🔒 pin codeql.yml actions to commit SHAs * 🔒 pin ssh-pr-runner.yml actions to commit SHAs * 🔒 pin trufflehog.yml actions to commit SHAs
1 parent e365d74 commit 3211cd9

File tree

11 files changed

+46
-46
lines changed

11 files changed

+46
-46
lines changed

.github/workflows/benchmark.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
options: --shm-size "16gb" --ipc host --gpus all
2929
steps:
3030
- name: Checkout diffusers
31-
uses: actions/checkout@v6
31+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3232
with:
3333
fetch-depth: 2
3434
- name: NVIDIA-SMI
@@ -58,7 +58,7 @@ jobs:
5858
5959
- name: Test suite reports artifacts
6060
if: ${{ always() }}
61-
uses: actions/upload-artifact@v6
61+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
6262
with:
6363
name: benchmark_test_reports
6464
path: benchmarks/${{ env.BASE_PATH }}

.github/workflows/build_docker_images.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ jobs:
2525
if: github.event_name == 'pull_request'
2626
steps:
2727
- name: Set up Docker Buildx
28-
uses: docker/setup-buildx-action@v3
28+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
2929

3030
- name: Check out code
31-
uses: actions/checkout@v6
31+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3232

3333
- name: Find Changed Dockerfiles
3434
id: file_changes
35-
uses: jitterbit/get-changed-files@v1
35+
uses: jitterbit/get-changed-files@b17fbb00bdc0c0f63fcf166580804b4d2cdc2a42 # v1
3636
with:
3737
format: "space-delimited"
3838
token: ${{ secrets.GITHUB_TOKEN }}
@@ -99,16 +99,16 @@ jobs:
9999

100100
steps:
101101
- name: Checkout repository
102-
uses: actions/checkout@v6
102+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
103103
- name: Set up Docker Buildx
104-
uses: docker/setup-buildx-action@v3
104+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
105105
- name: Login to Docker Hub
106-
uses: docker/login-action@v3
106+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
107107
with:
108108
username: ${{ env.REGISTRY }}
109109
password: ${{ secrets.DOCKERHUB_TOKEN }}
110110
- name: Build and push
111-
uses: docker/build-push-action@v6
111+
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
112112
with:
113113
no-cache: true
114114
context: ./docker/${{ matrix.image-name }}
@@ -117,7 +117,7 @@ jobs:
117117

118118
- name: Post to a Slack channel
119119
id: slack
120-
uses: huggingface/hf-workflows/.github/actions/post-slack@main
120+
uses: huggingface/hf-workflows/.github/actions/post-slack@a88e7fa2eaee28de5a4d6142381b1fb792349b67 # main
121121
with:
122122
# Slack channel id, channel name, or user id to post message.
123123
# See also: https://api.slack.com/methods/chat.postMessage#channels

.github/workflows/build_documentation.yml

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

1515
jobs:
1616
build:
17-
uses: huggingface/doc-builder/.github/workflows/build_main_documentation.yml@main
17+
uses: huggingface/doc-builder/.github/workflows/build_main_documentation.yml@90b4ee2c10b81b5c1a6367c4e6fc9e2fb510a7e3 # main
1818
with:
1919
commit_sha: ${{ github.sha }}
2020
install_libgl1: true

.github/workflows/build_pr_documentation.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717

1818
steps:
1919
- name: Checkout repository
20-
uses: actions/checkout@v6
20+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2121

2222
- name: Set up Python
23-
uses: actions/setup-python@v6
23+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
2424
with:
2525
python-version: '3.10'
2626

@@ -39,7 +39,7 @@ jobs:
3939
4040
build:
4141
needs: check-links
42-
uses: huggingface/doc-builder/.github/workflows/build_pr_documentation.yml@main
42+
uses: huggingface/doc-builder/.github/workflows/build_pr_documentation.yml@90b4ee2c10b81b5c1a6367c4e6fc9e2fb510a7e3 # main
4343
with:
4444
commit_sha: ${{ github.event.pull_request.head.sha }}
4545
pr_number: ${{ github.event.number }}

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
codeql:
1212
name: CodeQL Analysis
13-
uses: huggingface/security-workflows/.github/workflows/codeql-reusable.yml@v1
13+
uses: huggingface/security-workflows/.github/workflows/codeql-reusable.yml@dc6ca34688e6876c2dd18750719b44d177586c17 # v1
1414
permissions:
1515
security-events: write
1616
packages: read

.github/workflows/nightly_tests.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
pipeline_test_matrix: ${{ steps.fetch_pipeline_matrix.outputs.pipeline_test_matrix }}
2929
steps:
3030
- name: Checkout diffusers
31-
uses: actions/checkout@v6
31+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3232
with:
3333
fetch-depth: 2
3434
- name: Install dependencies
@@ -44,7 +44,7 @@ jobs:
4444
4545
- name: Pipeline Tests Artifacts
4646
if: ${{ always() }}
47-
uses: actions/upload-artifact@v6
47+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
4848
with:
4949
name: test-pipelines.json
5050
path: reports
@@ -64,7 +64,7 @@ jobs:
6464
options: --shm-size "16gb" --ipc host --gpus all
6565
steps:
6666
- name: Checkout diffusers
67-
uses: actions/checkout@v6
67+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6868
with:
6969
fetch-depth: 2
7070
- name: NVIDIA-SMI
@@ -97,7 +97,7 @@ jobs:
9797
cat reports/tests_pipeline_${{ matrix.module }}_cuda_failures_short.txt
9898
- name: Test suite reports artifacts
9999
if: ${{ always() }}
100-
uses: actions/upload-artifact@v6
100+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
101101
with:
102102
name: pipeline_${{ matrix.module }}_test_reports
103103
path: reports
@@ -119,7 +119,7 @@ jobs:
119119
module: [models, schedulers, lora, others, single_file, examples]
120120
steps:
121121
- name: Checkout diffusers
122-
uses: actions/checkout@v6
122+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
123123
with:
124124
fetch-depth: 2
125125

@@ -167,7 +167,7 @@ jobs:
167167
168168
- name: Test suite reports artifacts
169169
if: ${{ always() }}
170-
uses: actions/upload-artifact@v6
170+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
171171
with:
172172
name: torch_${{ matrix.module }}_cuda_test_reports
173173
path: reports
@@ -184,7 +184,7 @@ jobs:
184184

185185
steps:
186186
- name: Checkout diffusers
187-
uses: actions/checkout@v6
187+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
188188
with:
189189
fetch-depth: 2
190190

@@ -211,7 +211,7 @@ jobs:
211211

212212
- name: Test suite reports artifacts
213213
if: ${{ always() }}
214-
uses: actions/upload-artifact@v6
214+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
215215
with:
216216
name: torch_compile_test_reports
217217
path: reports
@@ -228,7 +228,7 @@ jobs:
228228
options: --shm-size "16gb" --ipc host --gpus all
229229
steps:
230230
- name: Checkout diffusers
231-
uses: actions/checkout@v6
231+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
232232
with:
233233
fetch-depth: 2
234234
- name: NVIDIA-SMI
@@ -263,7 +263,7 @@ jobs:
263263
cat reports/tests_big_gpu_torch_cuda_failures_short.txt
264264
- name: Test suite reports artifacts
265265
if: ${{ always() }}
266-
uses: actions/upload-artifact@v6
266+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
267267
with:
268268
name: torch_cuda_big_gpu_test_reports
269269
path: reports
@@ -280,7 +280,7 @@ jobs:
280280
shell: bash
281281
steps:
282282
- name: Checkout diffusers
283-
uses: actions/checkout@v6
283+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
284284
with:
285285
fetch-depth: 2
286286

@@ -321,7 +321,7 @@ jobs:
321321
322322
- name: Test suite reports artifacts
323323
if: ${{ always() }}
324-
uses: actions/upload-artifact@v6
324+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
325325
with:
326326
name: torch_minimum_version_cuda_test_reports
327327
path: reports
@@ -355,7 +355,7 @@ jobs:
355355
options: --shm-size "20gb" --ipc host --gpus all
356356
steps:
357357
- name: Checkout diffusers
358-
uses: actions/checkout@v6
358+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
359359
with:
360360
fetch-depth: 2
361361
- name: NVIDIA-SMI
@@ -391,7 +391,7 @@ jobs:
391391
cat reports/tests_${{ matrix.config.backend }}_torch_cuda_failures_short.txt
392392
- name: Test suite reports artifacts
393393
if: ${{ always() }}
394-
uses: actions/upload-artifact@v6
394+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
395395
with:
396396
name: torch_cuda_${{ matrix.config.backend }}_reports
397397
path: reports
@@ -408,7 +408,7 @@ jobs:
408408
options: --shm-size "20gb" --ipc host --gpus all
409409
steps:
410410
- name: Checkout diffusers
411-
uses: actions/checkout@v6
411+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
412412
with:
413413
fetch-depth: 2
414414
- name: NVIDIA-SMI
@@ -441,7 +441,7 @@ jobs:
441441
cat reports/tests_pipeline_level_quant_torch_cuda_failures_short.txt
442442
- name: Test suite reports artifacts
443443
if: ${{ always() }}
444-
uses: actions/upload-artifact@v6
444+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
445445
with:
446446
name: torch_cuda_pipeline_level_quant_reports
447447
path: reports
@@ -466,15 +466,15 @@ jobs:
466466
image: diffusers/diffusers-pytorch-cpu
467467
steps:
468468
- name: Checkout diffusers
469-
uses: actions/checkout@v6
469+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
470470
with:
471471
fetch-depth: 2
472472

473473
- name: Create reports directory
474474
run: mkdir -p combined_reports
475475

476476
- name: Download all test reports
477-
uses: actions/download-artifact@v7
477+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
478478
with:
479479
path: artifacts
480480

@@ -500,7 +500,7 @@ jobs:
500500
cat $CONSOLIDATED_REPORT_PATH >> $GITHUB_STEP_SUMMARY
501501
502502
- name: Upload consolidated report
503-
uses: actions/upload-artifact@v6
503+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
504504
with:
505505
name: consolidated_test_report
506506
path: ${{ env.CONSOLIDATED_REPORT_PATH }}
@@ -514,7 +514,7 @@ jobs:
514514
#
515515
# steps:
516516
# - name: Checkout diffusers
517-
# uses: actions/checkout@v6
517+
# uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
518518
# with:
519519
# fetch-depth: 2
520520
#
@@ -554,7 +554,7 @@ jobs:
554554
#
555555
# - name: Test suite reports artifacts
556556
# if: ${{ always() }}
557-
# uses: actions/upload-artifact@v6
557+
# uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
558558
# with:
559559
# name: torch_mps_test_reports
560560
# path: reports
@@ -570,7 +570,7 @@ jobs:
570570
#
571571
# steps:
572572
# - name: Checkout diffusers
573-
# uses: actions/checkout@v6
573+
# uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
574574
# with:
575575
# fetch-depth: 2
576576
#
@@ -610,7 +610,7 @@ jobs:
610610
#
611611
# - name: Test suite reports artifacts
612612
# if: ${{ always() }}
613-
# uses: actions/upload-artifact@v6
613+
# uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
614614
# with:
615615
# name: torch_mps_test_reports
616616
# path: reports

.github/workflows/pr_style_bot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010

1111
jobs:
1212
style:
13-
uses: huggingface/huggingface_hub/.github/workflows/style-bot-action.yml@main
13+
uses: huggingface/huggingface_hub/.github/workflows/style-bot-action.yml@e000c1c89c65aee188041723456ac3a479416d4c # main
1414
with:
1515
python_quality_dependencies: "[quality]"
1616
secrets:

.github/workflows/ssh-pr-runner.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ jobs:
2727

2828
steps:
2929
- name: Checkout diffusers
30-
uses: actions/checkout@v6
30+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3131
with:
3232
fetch-depth: 2
3333

3434
- name: Tailscale # In order to be able to SSH when a test fails
35-
uses: huggingface/tailscale-action@main
35+
uses: huggingface/tailscale-action@7d53c9737e53934c30290b5524d1c9b4a7c98c8a # main
3636
with:
3737
authkey: ${{ secrets.TAILSCALE_SSH_AUTHKEY }}
3838
slackChannel: ${{ secrets.SLACK_CIFEEDBACK_CHANNEL }}

.github/workflows/trufflehog.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
runs-on: ubuntu-22.04
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
1818

.github/workflows/typos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-22.04
99

1010
steps:
11-
- uses: actions/checkout@v6
11+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1212

1313
- name: typos-action
14-
uses: crate-ci/typos@v1.42.1
14+
uses: crate-ci/typos@65120634e79d8374d1aa2f27e54baa0c364fff5a # v1.42.1

0 commit comments

Comments
 (0)