Skip to content

Commit 1e1a1ff

Browse files
authored
workflows/release-binaries-all: Validate input and remove template expansion (llvm#199427)
https://github.com/llvm/llvm-project/security/code-scanning/1695
1 parent 78f5f77 commit 1e1a1ff

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/release-binaries-all.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,18 @@ jobs:
6464
release-version: ${{ steps.vars.outputs.release-version }}
6565
upload: ${{ steps.vars.outputs.upload }}
6666
steps:
67+
- name: Validate Input
68+
if: inputs.release-version != ''
69+
uses: ./.github/workflows/validate-release-version
70+
with:
71+
release-version: ${{ inputs.release-version }}
6772
- shell: bash
6873
id: vars
74+
env:
75+
RELEASE_VERSION: ${{ inputs.release-version }}
6976
run: |
7077
upload="${{ inputs.upload }}"
71-
release_version="${{ inputs.release-version }}"
78+
release_version="$RELEASE_VERSION"
7279
if [ "${{ github.event_name }}" = "pull_request" ] || [ "${{ github.event_name }}" = "schedule" ]; then
7380
upload="false"
7481
release_version=""

0 commit comments

Comments
 (0)