Skip to content

Commit 663ab60

Browse files
committed
Potential fix for code scanning alert no. 135: Code injection
1 parent 01dcbbc commit 663ab60

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

node-release/action.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,11 @@ runs:
107107
- name: Push New Version
108108
if: ${{ inputs.semver != 'skip' }}
109109
shell: bash
110+
env:
111+
PACKAGE_PATH: ${{ inputs.package_path }}
110112
run: |
111-
contents="$(jq '.version = "${{ steps.semver.outputs.new_version }}"' ${{ inputs.package_path }}package.json)"
112-
echo -E "${contents}" > ${{ inputs.package_path }}package.json
113+
contents="$(jq '.version = "${{ steps.semver.outputs.new_version }}"' ${PACKAGE_PATH}package.json)"
114+
echo -E "${contents}" > ${PACKAGE_PATH}package.json
113115
114116
git add .
115117
git config --global user.email "github-bot@pagopa.it"

0 commit comments

Comments
 (0)