Skip to content

Commit e8e18f3

Browse files
committed
ci: fix zizmor warnings
1 parent 2b75f3e commit e8e18f3

7 files changed

Lines changed: 51 additions & 51 deletions

File tree

.github/workflows/benchmark.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ jobs:
2323
persist-credentials: false
2424
- name: Install Rust
2525
run: |
26-
rustup update --no-self-update ${{ env.RUST_CHANNEL }}
27-
rustup component add --toolchain ${{ env.RUST_CHANNEL }} cargo
28-
rustup default ${{ env.RUST_CHANNEL }}
26+
rustup update --no-self-update ${RUST_CHANNEL}
27+
rustup component add --toolchain ${RUST_CHANNEL} cargo
28+
rustup default ${RUST_CHANNEL}
2929
env:
3030
RUST_CHANNEL: ${{ env.RUST_CHANNEL }}
3131
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # ratchet:Swatinem/rust-cache@v2

.github/workflows/build.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ jobs:
3333
persist-credentials: false
3434
- name: Install Rust
3535
run: |
36-
rustup update --no-self-update ${{ env.RUST_CHANNEL }}
37-
rustup component add --toolchain ${{ env.RUST_CHANNEL }} cargo
38-
rustup default ${{ env.RUST_CHANNEL }}
36+
rustup update --no-self-update ${RUST_CHANNEL}
37+
rustup component add --toolchain ${env.RUST_CHANNEL} cargo
38+
rustup default ${RUST_CHANNEL}
3939
env:
4040
RUST_CHANNEL: ${{ env.RUST_CHANNEL }}
4141
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # ratchet:Swatinem/rust-cache@v2
@@ -54,9 +54,9 @@ jobs:
5454
persist-credentials: false
5555
- name: Install Rust
5656
run: |
57-
rustup update --no-self-update ${{ env.RUST_CHANNEL }}
58-
rustup component add --toolchain ${{ env.RUST_CHANNEL }} cargo
59-
rustup default ${{ env.RUST_CHANNEL }}
57+
rustup update --no-self-update ${RUST_CHANNEL}
58+
rustup component add --toolchain ${env.RUST_CHANNEL} cargo
59+
rustup default ${RUST_CHANNEL}
6060
env:
6161
RUST_CHANNEL: ${{ env.RUST_CHANNEL }}
6262
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # ratchet:Swatinem/rust-cache@v2
@@ -101,9 +101,9 @@ jobs:
101101
persist-credentials: false
102102
- name: Install Rust
103103
run: |
104-
rustup update --no-self-update ${{ env.RUST_CHANNEL }}
105-
rustup component add --toolchain ${{ env.RUST_CHANNEL }} cargo
106-
rustup default ${{ env.RUST_CHANNEL }}
104+
rustup update --no-self-update ${RUST_CHANNEL}
105+
rustup component add --toolchain ${env.RUST_CHANNEL} cargo
106+
rustup default ${RUST_CHANNEL}
107107
env:
108108
RUST_CHANNEL: ${{ env.RUST_CHANNEL }}
109109
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # ratchet:Swatinem/rust-cache@v2
@@ -122,9 +122,9 @@ jobs:
122122
persist-credentials: false
123123
- name: Install Rust
124124
run: |
125-
rustup update --no-self-update ${{ env.RUST_CHANNEL }}
126-
rustup component add --toolchain ${{ env.RUST_CHANNEL }} cargo
127-
rustup default ${{ env.RUST_CHANNEL }}
125+
rustup update --no-self-update ${RUST_CHANNEL}
126+
rustup component add --toolchain ${env.RUST_CHANNEL} cargo
127+
rustup default ${RUST_CHANNEL}
128128
env:
129129
RUST_CHANNEL: ${{ env.RUST_CHANNEL }}
130130
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # ratchet:Swatinem/rust-cache@v2
@@ -143,9 +143,9 @@ jobs:
143143
persist-credentials: false
144144
- name: Install Rust
145145
run: |
146-
rustup update --no-self-update ${{ env.RUST_CHANNEL }}
147-
rustup component add --toolchain ${{ env.RUST_CHANNEL }} cargo
148-
rustup default ${{ env.RUST_CHANNEL }}
146+
rustup update --no-self-update ${RUST_CHANNEL}
147+
rustup component add --toolchain ${env.RUST_CHANNEL} cargo
148+
rustup default ${RUST_CHANNEL}
149149
env:
150150
RUST_CHANNEL: ${{ env.RUST_CHANNEL }}
151151
- uses: EmbarkStudios/cargo-deny-action@a531616d8ce3b9177443e48a1159bc945a099823 # ratchet:EmbarkStudios/cargo-deny-action@v2
@@ -164,9 +164,9 @@ jobs:
164164
persist-credentials: false
165165
- name: Install Rust
166166
run: |
167-
rustup update --no-self-update ${{ env.RUST_CHANNEL }}
168-
rustup component add --toolchain ${{ env.RUST_CHANNEL }} cargo
169-
rustup default ${{ env.RUST_CHANNEL }}
167+
rustup update --no-self-update ${RUST_CHANNEL}
168+
rustup component add --toolchain ${env.RUST_CHANNEL} cargo
169+
rustup default ${RUST_CHANNEL}
170170
env:
171171
RUST_CHANNEL: ${{ env.RUST_CHANNEL }}
172172
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # ratchet:Swatinem/rust-cache@v2
@@ -230,9 +230,9 @@ jobs:
230230
persist-credentials: false
231231
- name: Install Rust
232232
run: |
233-
rustup update --no-self-update ${{ env.RUST_CHANNEL }}
234-
rustup component add --toolchain ${{ env.RUST_CHANNEL }} cargo
235-
rustup default ${{ env.RUST_CHANNEL }}
233+
rustup update --no-self-update ${RUST_CHANNEL}
234+
rustup component add --toolchain ${env.RUST_CHANNEL} cargo
235+
rustup default ${RUST_CHANNEL}
236236
env:
237237
RUST_CHANNEL: ${{ env.RUST_CHANNEL }}
238238
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # ratchet:Swatinem/rust-cache@v2
@@ -252,9 +252,9 @@ jobs:
252252
persist-credentials: false
253253
- name: Install Rust
254254
run: |
255-
rustup update --no-self-update ${{ env.RUST_CHANNEL }}
256-
rustup component add --toolchain ${{ env.RUST_CHANNEL }} cargo
257-
rustup default ${{ env.RUST_CHANNEL }}
255+
rustup update --no-self-update ${RUST_CHANNEL}
256+
rustup component add --toolchain ${RUST_CHANNEL} cargo
257+
rustup default ${RUST_CHANNEL}
258258
env:
259259
RUST_CHANNEL: ${{ env.RUST_CHANNEL }}
260260
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # ratchet:Swatinem/rust-cache@v2
@@ -273,9 +273,9 @@ jobs:
273273
persist-credentials: false
274274
- name: Install Rust
275275
run: |
276-
rustup update --no-self-update ${{ env.RUST_CHANNEL }}
277-
rustup component add --toolchain ${{ env.RUST_CHANNEL }} cargo
278-
rustup default ${{ env.RUST_CHANNEL }}
276+
rustup update --no-self-update ${RUST_CHANNEL}
277+
rustup component add --toolchain ${env.RUST_CHANNEL} cargo
278+
rustup default ${RUST_CHANNEL}
279279
env:
280280
RUST_CHANNEL: ${{ env.RUST_CHANNEL }}
281281
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # ratchet:Swatinem/rust-cache@v2

.github/workflows/changelog.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ jobs:
2929
fetch-depth: 0
3030
- name: Install Rust
3131
run: |
32-
rustup update --no-self-update ${{ env.RUST_CHANNEL }}
33-
rustup component add --toolchain ${{ env.RUST_CHANNEL }} cargo
34-
rustup default ${{ env.RUST_CHANNEL }}
32+
rustup update --no-self-update ${RUST_CHANNEL}
33+
rustup component add --toolchain ${RUST_CHANNEL} cargo
34+
rustup default ${RUST_CHANNEL}
3535
env:
3636
RUST_CHANNEL: ${{ env.RUST_CHANNEL }}
3737
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # ratchet:Swatinem/rust-cache@v2

.github/workflows/code-coverage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ jobs:
3535
persist-credentials: false
3636
- name: Install Rust
3737
run: |
38-
rustup update --no-self-update ${{ env.RUST_CHANNEL }}
39-
rustup component add --toolchain ${{ env.RUST_CHANNEL }} cargo
40-
rustup default ${{ env.RUST_CHANNEL }}
38+
rustup update --no-self-update ${RUST_CHANNEL}
39+
rustup component add --toolchain ${RUST_CHANNEL} cargo
40+
rustup default ${RUST_CHANNEL}
4141
env:
4242
RUST_CHANNEL: ${{ env.RUST_CHANNEL }}
4343
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # ratchet:Swatinem/rust-cache@v2

.github/workflows/publish.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ jobs:
3333
persist-credentials: false
3434
- name: Install Rust
3535
run: |
36-
rustup update --no-self-update ${{ env.RUST_CHANNEL }}
37-
rustup component add --toolchain ${{ env.RUST_CHANNEL }} cargo
38-
rustup default ${{ env.RUST_CHANNEL }}
36+
rustup update --no-self-update ${RUST_CHANNEL}
37+
rustup component add --toolchain ${RUST_CHANNEL} cargo
38+
rustup default ${RUST_CHANNEL}
3939
env:
4040
RUST_CHANNEL: ${{ env.RUST_CHANNEL }}
4141
- id: release
@@ -52,7 +52,7 @@ jobs:
5252
with:
5353
persist-credentials: false
5454
- name: Create github release
55-
run: gh release create "v${{ env.VERSION }}" --generate-notes
55+
run: gh release create "v${VERSION}" --generate-notes
5656
env:
5757
GH_TOKEN: ${{ secrets.token || secrets.GITHUB_TOKEN }}
5858
VERSION: ${{ needs.version.outputs.version }}
@@ -85,9 +85,9 @@ jobs:
8585
persist-credentials: false
8686
- name: Install Rust
8787
run: |
88-
rustup update --no-self-update ${{ env.RUST_CHANNEL }}
89-
rustup component add --toolchain ${{ env.RUST_CHANNEL }} cargo
90-
rustup default ${{ env.RUST_CHANNEL }}
88+
rustup update --no-self-update ${RUST_CHANNEL}
89+
rustup component add --toolchain ${RUST_CHANNEL} cargo
90+
rustup default ${RUST_CHANNEL}
9191
env:
9292
RUST_CHANNEL: ${{ env.RUST_CHANNEL }}
9393

.github/workflows/security.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ jobs:
3232
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # ratchet:Swatinem/rust-cache@v2
3333
- name: Install Rust
3434
run: |
35-
rustup update --no-self-update ${{ env.RUST_CHANNEL }}
36-
rustup component add --toolchain ${{ env.RUST_CHANNEL }} cargo
37-
rustup default ${{ env.RUST_CHANNEL }}
35+
rustup update --no-self-update ${RUST_CHANNEL}
36+
rustup component add --toolchain ${RUST_CHANNEL} cargo
37+
rustup default ${RUST_CHANNEL}
3838
env:
3939
RUST_CHANNEL: ${{ env.RUST_CHANNEL }}
4040
- name: Install cargo-edit
@@ -51,9 +51,9 @@ jobs:
5151
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # ratchet:Swatinem/rust-cache@v2
5252
- name: Install Rust
5353
run: |
54-
rustup update --no-self-update ${{ env.RUST_CHANNEL }}
55-
rustup component add --toolchain ${{ env.RUST_CHANNEL }} cargo
56-
rustup default ${{ env.RUST_CHANNEL }}
54+
rustup update --no-self-update ${RUST_CHANNEL}
55+
rustup component add --toolchain ${RUST_CHANNEL} cargo
56+
rustup default ${RUST_CHANNEL}
5757
env:
5858
RUST_CHANNEL: ${{ env.RUST_CHANNEL }}
5959
- name: Install cargo-outdated

.github/workflows/tag.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ jobs:
5858
- name: Create git tag
5959
id: tag
6060
run: |
61-
if git tag -a "v${{ env.VERSION }}" -m "${{ env.VERSION }}"; then
61+
if git tag -a "v${VERSION}" -m "${VERSION}"; then
6262
echo "created=true" >> "$GITHUB_OUTPUT"
6363
else
64-
echo "::notice title=Git tag:: The version ${{ env.VERSION }} already exists. The \`publish\` workflow won't be executed."
64+
echo "::notice title=Git tag:: The version ${VERSION} already exists. The \`publish\` workflow won't be executed."
6565
echo "created=false" >> "$GITHUB_OUTPUT"
6666
fi
6767
env:

0 commit comments

Comments
 (0)