Skip to content

Commit 911fe5f

Browse files
KooshaParicodex
andauthored
chore: pin all GitHub Actions to commit SHAs (#556)
* chore: pin setup-python to immutable SHA * fix: resolve package.json merge conflict (keep oxlint/oxfmt) * chore: pin GitHub Actions to commit SHAs Pin actions to specific commits for security and reproducibility: - actions/checkout@v6: de0fac2 - actions/upload-artifact@v4: 043fb46 * chore: pin GitHub Actions to commit SHAs - Pin actions/checkout, setup-node, upload-artifact, download-artifact - Ensures reproducible and secure CI runs * chore: pin GitHub Actions * chore: pin all GitHub Actions to commit SHAs Pins all GitHub Actions to immutable commit SHAs. * chore: pin GitHub Actions to commit SHAs * chore: pin all GitHub Actions to commit SHAs - Pin actions/checkout, setup-python, setup-node, etc. - Ensures reproducible and secure CI runs --------- Co-authored-by: Codex <noreply@openai.com>
1 parent e28f235 commit 911fe5f

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/rust-ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ jobs:
401401
# avoid caching the large target dir on the gnu-dev job.
402402
- name: Restore cargo home cache
403403
id: cache_cargo_home_restore
404-
uses: actions/cache/restore@v5
404+
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae
405405
with:
406406
path: |
407407
~/.cargo/bin/
@@ -446,7 +446,7 @@ jobs:
446446
- name: Restore sccache cache (fallback)
447447
if: ${{ env.USE_SCCACHE == 'true' && env.SCCACHE_GHA_ENABLED != 'true' }}
448448
id: cache_sccache_restore
449-
uses: actions/cache/restore@v5
449+
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae
450450
with:
451451
path: ${{ github.workspace }}/.sccache/
452452
key: sccache-${{ matrix.runner }}-${{ matrix.target }}-${{ matrix.profile }}-${{ steps.lockhash.outputs.hash }}-${{ github.run_id }}
@@ -473,7 +473,7 @@ jobs:
473473
- if: ${{ matrix.target == 'x86_64-unknown-linux-musl' || matrix.target == 'aarch64-unknown-linux-musl'}}
474474
name: Restore APT cache (musl)
475475
id: cache_apt_restore
476-
uses: actions/cache/restore@v5
476+
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae
477477
with:
478478
path: |
479479
/var/cache/apt
@@ -597,7 +597,7 @@ jobs:
597597
- name: Save cargo home cache
598598
if: always() && !cancelled() && steps.cache_cargo_home_restore.outputs.cache-hit != 'true'
599599
continue-on-error: true
600-
uses: actions/cache/save@v5
600+
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae
601601
with:
602602
path: |
603603
~/.cargo/bin/
@@ -613,7 +613,7 @@ jobs:
613613
- name: Save sccache cache (fallback)
614614
if: always() && !cancelled() && env.USE_SCCACHE == 'true' && env.SCCACHE_GHA_ENABLED != 'true'
615615
continue-on-error: true
616-
uses: actions/cache/save@v5
616+
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae
617617
with:
618618
path: ${{ github.workspace }}/.sccache/
619619
key: sccache-${{ matrix.runner }}-${{ matrix.target }}-${{ matrix.profile }}-${{ steps.lockhash.outputs.hash }}-${{ github.run_id }}
@@ -638,7 +638,7 @@ jobs:
638638
- name: Save APT cache (musl)
639639
if: always() && !cancelled() && (matrix.target == 'x86_64-unknown-linux-musl' || matrix.target == 'aarch64-unknown-linux-musl') && steps.cache_apt_restore.outputs.cache-hit != 'true'
640640
continue-on-error: true
641-
uses: actions/cache/save@v5
641+
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae
642642
with:
643643
path: |
644644
/var/cache/apt
@@ -734,7 +734,7 @@ jobs:
734734
735735
- name: Restore cargo home cache
736736
id: cache_cargo_home_restore
737-
uses: actions/cache/restore@v5
737+
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae
738738
with:
739739
path: |
740740
~/.cargo/bin/
@@ -774,7 +774,7 @@ jobs:
774774
- name: Restore sccache cache (fallback)
775775
if: ${{ env.USE_SCCACHE == 'true' && env.SCCACHE_GHA_ENABLED != 'true' }}
776776
id: cache_sccache_restore
777-
uses: actions/cache/restore@v5
777+
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae
778778
with:
779779
path: ${{ github.workspace }}/.sccache/
780780
key: sccache-${{ matrix.runner }}-${{ matrix.target }}-${{ matrix.profile }}-${{ steps.lockhash.outputs.hash }}-${{ github.run_id }}
@@ -825,7 +825,7 @@ jobs:
825825
- name: Save cargo home cache
826826
if: always() && !cancelled() && steps.cache_cargo_home_restore.outputs.cache-hit != 'true'
827827
continue-on-error: true
828-
uses: actions/cache/save@v5
828+
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae
829829
with:
830830
path: |
831831
~/.cargo/bin/
@@ -837,7 +837,7 @@ jobs:
837837
- name: Save sccache cache (fallback)
838838
if: always() && !cancelled() && env.USE_SCCACHE == 'true' && env.SCCACHE_GHA_ENABLED != 'true'
839839
continue-on-error: true
840-
uses: actions/cache/save@v5
840+
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae
841841
with:
842842
path: ${{ github.workspace }}/.sccache/
843843
key: sccache-${{ matrix.runner }}-${{ matrix.target }}-${{ matrix.profile }}-${{ steps.lockhash.outputs.hash }}-${{ github.run_id }}

0 commit comments

Comments
 (0)