mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user