[ACS-10124] Fix Change this action to not use user-controlled data directly in a run block sonar issue (#4810)

* [ACS-10124] Fix Change this action to not use user-controlled data directly in a run block sonar issue

* [ACS-10124] Corrected typo
This commit is contained in:
AleksanderSklorz
2025-09-25 10:50:08 +02:00
committed by GitHub
parent 0407c236c4
commit 296789da22
5 changed files with 21 additions and 9 deletions
+4 -2
View File
@@ -22,9 +22,11 @@ runs:
- uses: Alfresco/alfresco-build-tools/.github/actions/get-branch-name@v8.33.0
- name: set TAG_NPM
shell: bash
env:
NPM_TAG: ${{ inputs.npm_tag }}
run: |
if [[ -n "${{ inputs.npm_tag }}" ]]; then
TAG_NPM=${{ inputs.npm_tag }}
if [[ -n "$NPM_TAG" ]]; then
TAG_NPM=$NPM_TAG
else
TAG_NPM="alpha"
VERSION_IN_PACKAGE_JSON=$(jq -cr '.version' < package.json)