Skip to content

Commit 54d671d

Browse files
committed
Fixing Command Injection vulnerability
1 parent 77e1cd9 commit 54d671d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ jobs:
3535

3636
- name: Update version if specified
3737
if: github.event_name == 'workflow_dispatch' && github.event.inputs.version != ''
38-
run: npm version ${{ github.event.inputs.version }} --no-git-tag-version
38+
env:
39+
VERSION: ${{ github.event.inputs.version }}
40+
run: npm version "$VERSION" --no-git-tag-version
3941

4042
- name: Publish to NPM
4143
run: npm publish --access public

0 commit comments

Comments
 (0)