Skip to content

Commit 1586bd8

Browse files
Clean up workflow files for Zizmor (#552)
1 parent f7ff6c7 commit 1586bd8

17 files changed

+88
-25
lines changed

.github/workflows/build-android.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ jobs:
3434
steps:
3535
- name: Checkout repo
3636
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
37+
with:
38+
persist-credentials: false
3739

3840
- name: Install rust
3941
uses: dtolnay/rust-toolchain@6d653acede28d24f02e3cd41383119e8b1b35921 # stable
@@ -78,12 +80,14 @@ jobs:
7880
with:
7981
fetch-depth: 0
8082
ref: ${{ github.event.pull_request.head.ref }}
83+
persist-credentials: false
8184

8285
- name: Checkout repo (Push or manual run)
8386
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
8487
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
8588
with:
8689
fetch-depth: 0
90+
persist-credentials: false
8791

8892
- name: Install rust
8993
uses: dtolnay/rust-toolchain@6d653acede28d24f02e3cd41383119e8b1b35921 # stable

.github/workflows/build-rust-crates.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
steps:
3939
- name: Checkout
4040
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
41+
with:
42+
persist-credentials: false
4143

4244
- name: Install rust
4345
uses: dtolnay/rust-toolchain@6d653acede28d24f02e3cd41383119e8b1b35921 # stable
@@ -60,6 +62,8 @@ jobs:
6062
steps:
6163
- name: Checkout
6264
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
65+
with:
66+
persist-credentials: false
6367

6468
- name: Install rust
6569
uses: dtolnay/rust-toolchain@6d653acede28d24f02e3cd41383119e8b1b35921 # stable

.github/workflows/build-swift.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
steps:
2121
- name: Checkout repo
2222
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
23+
with:
24+
persist-credentials: false
2325

2426
- name: Get Package Version
2527
id: retrieve-version
@@ -38,6 +40,8 @@ jobs:
3840
steps:
3941
- name: Checkout repo
4042
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
43+
with:
44+
persist-credentials: false
4145

4246
- name: Install rust
4347
uses: dtolnay/rust-toolchain@6d653acede28d24f02e3cd41383119e8b1b35921 # stable

.github/workflows/build-wasm-internal.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ jobs:
3535
steps:
3636
- name: Checkout repo
3737
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
38+
with:
39+
persist-credentials: false
3840

3941
- name: Set version (PR)
4042
if: ${{ github.event_name == 'pull_request' }}

.github/workflows/check-powerset.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
steps:
2727
- name: Checkout
2828
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
29+
with:
30+
persist-credentials: false
2931

3032
- name: Install rust
3133
uses: dtolnay/rust-toolchain@6d653acede28d24f02e3cd41383119e8b1b35921 # stable

.github/workflows/cloc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
steps:
1717
- name: Checkout repo
1818
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
19+
with:
20+
persist-credentials: false
1921

2022
- name: Set up cloc
2123
run: |

.github/workflows/direct-minimal-versions.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
steps:
4141
- name: Checkout
4242
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
43+
with:
44+
persist-credentials: false
4345

4446
- name: Set Rust Nightly Toolchain
4547
id: nightly-toolchain
@@ -62,4 +64,6 @@ jobs:
6264
key: dmv-${{ matrix.settings.target }}-cargo-${{ matrix.settings.os }}
6365

6466
- name: Cargo check direct-minimal-versions
65-
run: cargo +"${{ steps.nightly-toolchain.outputs.RUST_NIGHTLY_TOOLCHAIN }}" check -Z direct-minimal-versions --all-features
67+
env:
68+
RUST_NIGHTLY_TOOLCHAIN: ${{ steps.nightly-toolchain.outputs.RUST_NIGHTLY_TOOLCHAIN }}
69+
run: cargo +"${RUST_NIGHTLY_TOOLCHAIN}" check -Z direct-minimal-versions --all-features

.github/workflows/lint.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
steps:
2525
- name: Checkout
2626
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
27+
with:
28+
persist-credentials: false
2729

2830
- name: Set Rust Toolchain
2931
id: toolchain
@@ -46,15 +48,19 @@ jobs:
4648
components: clippy, rustfmt
4749

4850
- name: Install rust nightly
51+
env:
52+
RUST_NIGHTLY_TOOLCHAIN: ${{ steps.nightly-toolchain.outputs.RUST_NIGHTLY_TOOLCHAIN }}
4953
run: |
50-
rustup toolchain install "${{ steps.nightly-toolchain.outputs.RUST_NIGHTLY_TOOLCHAIN }}"
51-
rustup component add rustfmt --toolchain "${{ steps.nightly-toolchain.outputs.RUST_NIGHTLY_TOOLCHAIN }}"-x86_64-unknown-linux-gnu
54+
rustup toolchain install "${RUST_NIGHTLY_TOOLCHAIN}"
55+
rustup component add rustfmt --toolchain "${RUST_NIGHTLY_TOOLCHAIN}"-x86_64-unknown-linux-gnu
5256
5357
- name: Cache cargo registry
5458
uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
5559

5660
- name: Cargo fmt
57-
run: cargo +"${{ steps.nightly-toolchain.outputs.RUST_NIGHTLY_TOOLCHAIN }}" fmt --check
61+
env:
62+
RUST_NIGHTLY_TOOLCHAIN: ${{ steps.nightly-toolchain.outputs.RUST_NIGHTLY_TOOLCHAIN }}
63+
run: cargo +"${RUST_NIGHTLY_TOOLCHAIN}" fmt --check
5864

5965
- name: Install clippy-sarif and sarif-fmt
6066
run: cargo install clippy-sarif sarif-fmt --locked --git https://github.com/psastras/sarif-rs.git --rev 11c33a53f6ffeaed736856b86fb6b7b09fabdfd8
@@ -90,7 +96,9 @@ jobs:
9096
run: cargo install cargo-udeps --version 0.1.57 --locked
9197

9298
- name: Cargo udeps
93-
run: cargo +"${{ steps.nightly-toolchain.outputs.RUST_NIGHTLY_TOOLCHAIN }}" udeps --workspace --all-features
99+
env:
100+
RUST_NIGHTLY_TOOLCHAIN: ${{ steps.nightly-toolchain.outputs.RUST_NIGHTLY_TOOLCHAIN }}
101+
run: cargo +"${RUST_NIGHTLY_TOOLCHAIN}" udeps --workspace --all-features
94102

95103
- name: Install cargo-dylint
96104
run: cargo install cargo-dylint dylint-link --version 4.1.0 --locked

.github/workflows/memory-testing.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
steps:
2626
- name: Check out repo
2727
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
28+
with:
29+
persist-credentials: false
2830

2931
- name: Set up gdb
3032
run: |

.github/workflows/minimum-rust-version.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
steps:
3131
- name: Checkout
3232
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
33+
with:
34+
persist-credentials: false
3335

3436
- name: Set Rust Toolchain
3537
id: toolchain
@@ -50,4 +52,6 @@ jobs:
5052
key: msrv-${{ matrix.settings.target }}-cargo-${{ matrix.settings.os }}
5153

5254
- name: Cargo check MSRV
53-
run: cargo +"${{ steps.toolchain.outputs.RUST_TOOLCHAIN }}" check --all-features
55+
env:
56+
RUST_TOOLCHAIN: ${{ steps.toolchain.outputs.RUST_TOOLCHAIN }}
57+
run: cargo +"${RUST_TOOLCHAIN}" check --all-features

0 commit comments

Comments
 (0)