Skip to content

Commit 6d98648

Browse files
Merge pull request cli#13258 from orbisai0security/fix-shell-injection-deployment-workflow
fix: using variable interpolation `${{ in deployment.yml...
2 parents 6fffc2e + f52acd5 commit 6d98648

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/deployment.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ jobs:
3232
runs-on: ubuntu-latest
3333
steps:
3434
- name: Validate tag name format
35+
env:
36+
TAG_NAME: ${{ inputs.tag_name }}
3537
run: |
36-
if [[ ! "${{ inputs.tag_name }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
38+
if [[ ! "$TAG_NAME" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
3739
echo "Invalid tag name format. Must be in the form v1.2.3"
3840
exit 1
3941
fi

0 commit comments

Comments
 (0)