Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/release-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,14 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
RELEASE_TAG: ${{ inputs.tag }}
GH_REPO: ${{ github.repository }}
run: |
# Pass the tag via env and validate its format before use, so an
# untrusted dispatch input can't inject shell into the run step.
[[ "$RELEASE_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+([.-][0-9A-Za-z.-]+)?$ ]] || {
echo "Invalid release tag format: $RELEASE_TAG" >&2
exit 1
}
# This job does not check out the repo, so gh can't infer the target
# from a local .git β€” pass it explicitly via GH_REPO (gh reads it).
gh release upload "$RELEASE_TAG" release/* --clobber
Loading