Skip to content

Commit

Permalink
Pin unsafe GHA to commit sha
Browse files Browse the repository at this point in the history
  • Loading branch information
smiasojed committed Feb 27, 2024
1 parent 835775c commit 088613f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:
fetch-depth: 100

- name: Cache
uses: Swatinem/rust-cache@v2
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
with:
cache-directories: ${{ env.CARGO_TARGET_DIR }}

Expand Down Expand Up @@ -169,7 +169,7 @@ jobs:
fetch-depth: 100

- name: Cache
uses: Swatinem/rust-cache@v2
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
with:
cache-directories: ${{ env.CARGO_TARGET_DIR }}

Expand Down Expand Up @@ -207,7 +207,7 @@ jobs:
fetch-depth: 100

- name: Cache
uses: Swatinem/rust-cache@v2
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
with:
cache-directories: ${{ env.CARGO_TARGET_DIR }}

Expand Down Expand Up @@ -255,7 +255,7 @@ jobs:
fetch-depth: 100

- name: Cache
uses: Swatinem/rust-cache@v2
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
with:
cache-directories: ${{ env.CARGO_TARGET_DIR }}

Expand Down Expand Up @@ -296,7 +296,7 @@ jobs:
fetch-depth: 100

- name: Cache
uses: Swatinem/rust-cache@v2
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
with:
cache-directories: ${{ env.CARGO_TARGET_DIR }}

Expand Down Expand Up @@ -334,7 +334,7 @@ jobs:
fetch-depth: 100

- name: Cache
uses: Swatinem/rust-cache@v2
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
with:
cache-directories: |
${{ env.CARGO_TARGET_DIR }}
Expand Down Expand Up @@ -372,7 +372,7 @@ jobs:
fetch-depth: 100

- name: Cache
uses: Swatinem/rust-cache@v2
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
with:
cache-directories: ${{ env.CARGO_TARGET_DIR }}

Expand Down Expand Up @@ -472,7 +472,7 @@ jobs:
fetch-depth: 100

- name: Cache
uses: Swatinem/rust-cache@v2
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
with:
cache-directories: ${{ env.CARGO_TARGET_DIR }}

Expand Down Expand Up @@ -528,7 +528,7 @@ jobs:
fetch-depth: 100

- name: Cache
uses: Swatinem/rust-cache@v2
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
with:
cache-directories: ${{ env.CARGO_TARGET_DIR }}

Expand Down Expand Up @@ -579,7 +579,7 @@ jobs:
fetch-depth: 100

- name: Cache
uses: Swatinem/rust-cache@v2
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
with:
cache-directories: ${{ env.CARGO_TARGET_DIR }}

Expand Down Expand Up @@ -626,7 +626,7 @@ jobs:
fetch-depth: 100

- name: Cache
uses: Swatinem/rust-cache@v2
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
with:
cache-directories: ${{ env.CARGO_TARGET_DIR }}

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,19 @@ jobs:

- name: Install toolchain
id: toolchain
uses: dtolnay/rust-toolchain@master
uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248 # Master branch, Rust up to 1.74.1
with:
toolchain: ${{ matrix.toolchain }}
components: rust-src

- name: Install cargo-dylint
uses: baptiste0928/cargo-install@v3
uses: baptiste0928/cargo-install@1cd874a5478fdca35d868ccc74640c5aabbb8f1b # v3.0.0
with:
crate: cargo-dylint
version: 1

- name: Install dylint-link
uses: baptiste0928/cargo-install@v3
uses: baptiste0928/cargo-install@1cd874a5478fdca35d868ccc74640c5aabbb8f1b # v3.0.0
with:
crate: dylint-link
version: 1
Expand All @@ -74,10 +74,10 @@ jobs:
substrate-contracts-node -lruntime::contracts=debug 2>&1 | tee /tmp/contracts-node.log &
- name: Rust Cache
uses: Swatinem/rust-cache@v2
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3

- name: Install `cargo-contract` `master`
uses: baptiste0928/cargo-install@v3
uses: baptiste0928/cargo-install@1cd874a5478fdca35d868ccc74640c5aabbb8f1b # v3.0.0
with:
crate: cargo-contract
git: https://github.com/paritytech/cargo-contract.git
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/measurements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fetch-depth: 1

- name: Cache
uses: Swatinem/rust-cache@v2
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
with:
cache-directories: ${{ env.CARGO_TARGET_DIR }}

Expand Down

0 comments on commit 088613f

Please sign in to comment.