9494 GH_TOKEN : ${{ github.token }}
9595 steps :
9696 - name : Checkout this repository with full history, which the tag name is derived from
97- uses : actions/checkout@v4
97+ uses : actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
9898 with :
9999 ref : ${{ github.event.inputs.ref || 'master' }}
100100 fetch-depth : 0
@@ -243,7 +243,7 @@ jobs:
243243
244244 - name : Upload source artifact
245245 if : ${{ steps.r.outputs.exists != 'true' || github.event_name == 'workflow_dispatch' }}
246- uses : actions/upload-artifact@v4
246+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
247247 with :
248248 name : ${{ steps.r.outputs.source_artifact }}
249249 path : ${{ runner.temp }}/sd-source-${{ steps.r.outputs.tag }}.tar.gz
@@ -281,13 +281,13 @@ jobs:
281281 runs-on : ${{ matrix.runner }}
282282 steps :
283283 - name : Checkout mirror (tooling)
284- uses : actions/checkout@v4
284+ uses : actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
285285 with :
286286 path : tooling
287287 fetch-depth : 1
288288
289289 - name : Download source @ ${{ needs.resolve.outputs.tag }}
290- uses : actions/download-artifact@v4
290+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
291291 with :
292292 name : ${{ needs.resolve.outputs.source_artifact }}
293293 path : srcpkg
@@ -331,7 +331,7 @@ jobs:
331331 run : python3 tooling/scripts/unsloth/package_bundle.py
332332
333333 - name : Upload bundle
334- uses : actions/upload-artifact@v4
334+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
335335 with :
336336 name : sd-${{ needs.resolve.outputs.tag }}-bin-${{ matrix.label }}
337337 path : dist/sd-${{ needs.resolve.outputs.tag }}-bin-${{ matrix.label }}.zip
@@ -362,7 +362,7 @@ jobs:
362362 CUDA_ARCHS : " 75;80;86;89;90;100;120"
363363 steps :
364364 - name : Checkout mirror (tooling)
365- uses : actions/checkout@v4
365+ uses : actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
366366 with :
367367 path : tooling
368368 fetch-depth : 1
@@ -376,7 +376,7 @@ jobs:
376376 df -h /
377377
378378 - name : Download source @ ${{ needs.resolve.outputs.tag }}
379- uses : actions/download-artifact@v4
379+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
380380 with :
381381 name : ${{ needs.resolve.outputs.source_artifact }}
382382 path : srcpkg
@@ -388,7 +388,7 @@ jobs:
388388
389389 - name : Install CUDA toolkit
390390 id : cuda-toolkit
391- uses : Jimver/cuda-toolkit@v0.2.22
391+ uses : Jimver/cuda-toolkit@95b5a29a2823ef87666dcd45ec236fc4f82498d0 # v0.2.22
392392 with :
393393 cuda : ${{ env.CUDA_VERSION }}
394394 method : " network"
@@ -486,7 +486,7 @@ jobs:
486486 run : python3 tooling/scripts/unsloth/package_bundle.py
487487
488488 - name : Upload bundle
489- uses : actions/upload-artifact@v4
489+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
490490 with :
491491 name : sd-${{ needs.resolve.outputs.tag }}-bin-Linux-Ubuntu-22.04-x86_64-cuda12
492492 path : dist/sd-${{ needs.resolve.outputs.tag }}-bin-Linux-Ubuntu-22.04-x86_64-cuda12.zip
@@ -508,7 +508,7 @@ jobs:
508508 # takes the cancellation path, and that is the most expensive case to
509509 # lose (llama.cpp#81).
510510 if : ${{ always() }}
511- uses : actions/cache/save@v6
511+ uses : actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
512512 with :
513513 path : ${{ github.workspace }}/.ccache
514514 # Trailing dash keeps this distinct from the key the ccache action
@@ -522,13 +522,13 @@ jobs:
522522 runs-on : windows-2022
523523 steps :
524524 - name : Checkout mirror (tooling)
525- uses : actions/checkout@v4
525+ uses : actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
526526 with :
527527 path : tooling
528528 fetch-depth : 1
529529
530530 - name : Download source @ ${{ needs.resolve.outputs.tag }}
531- uses : actions/download-artifact@v4
531+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
532532 with :
533533 name : ${{ needs.resolve.outputs.source_artifact }}
534534 path : srcpkg
@@ -540,13 +540,13 @@ jobs:
540540 mkdir -p src
541541 tar -xzf "srcpkg/sd-source-${{ needs.resolve.outputs.tag }}.tar.gz" -C src
542542
543- - uses : actions/setup-python@v5
543+ - uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
544544 with :
545545 python-version : " 3.11"
546546 - name : Install Ninja
547547 run : choco install ninja --no-progress
548548 - name : Setup MSVC
549- uses : ilammy/msvc-dev-cmd@v1
549+ uses : ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
550550
551551 - name : Build sd-cli + sd-server
552552 shell : pwsh
@@ -574,7 +574,7 @@ jobs:
574574 run : python tooling/scripts/unsloth/package_bundle.py
575575
576576 - name : Upload bundle
577- uses : actions/upload-artifact@v4
577+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
578578 with :
579579 name : sd-${{ needs.resolve.outputs.tag }}-bin-win-cpu-x64
580580 path : dist/sd-${{ needs.resolve.outputs.tag }}-bin-win-cpu-x64.zip
@@ -596,13 +596,13 @@ jobs:
596596 GH_TOKEN : ${{ github.token }}
597597 steps :
598598 - name : Checkout mirror (tooling)
599- uses : actions/checkout@v4
599+ uses : actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
600600 with :
601601 path : tooling
602602 fetch-depth : 1
603603
604604 - name : Download bundles
605- uses : actions/download-artifact@v4
605+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
606606 with :
607607 path : dist
608608 pattern : sd-*-bin-*
@@ -663,7 +663,7 @@ jobs:
663663 # human wants the rescue bundle.
664664 - name : Upload full set (artifact fallback)
665665 if : ${{ always() && !success() }}
666- uses : actions/upload-artifact@v4
666+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
667667 with :
668668 name : unsloth-sd-prebuilt-${{ needs.resolve.outputs.tag }}
669669 path : dist/*
0 commit comments