Skip to content

Commit 2dd684e

Browse files
Copilotegorsmkv
andcommitted
security: add version pinning and prevent command injection in bump-version workflow
Co-authored-by: egorsmkv <7875085+egorsmkv@users.noreply.github.com>
1 parent 56c5abd commit 2dd684e

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/bump-version.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,14 @@ jobs:
1919
- uses: Swatinem/rust-cache@v2
2020
with:
2121
key: stable
22-
- uses: taiki-e/install-action@cargo-edit
22+
- uses: taiki-e/install-action@v2
23+
with:
24+
tool: cargo-edit
2325
- name: Bump version in Cargo.toml
26+
env:
27+
VERSION: ${{ github.event.inputs.version }}
2428
run: |
25-
cargo set-version ${{ github.event.inputs.version }}
29+
cargo set-version "$VERSION"
2630
shell: bash
2731
- name: Update Cargo.lock
2832
run: cargo update

0 commit comments

Comments
 (0)