Revert "SCSCANGHA-16 Support passing args with spaces (#79)" (#83)

This reverts commit d08d592c0b.
This commit is contained in:
csaba-feher-sonarsource 2024-06-13 14:34:22 +02:00 committed by GitHub
commit e44258b109
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 6 deletions

View file

@ -19,13 +19,12 @@ jobs:
- name: Run action with args
uses: ./
with:
args: >-
"-Dsonar.someArg=a value with spaces" -Dsonar.scanner.dumpToFile=./output.properties
args: -Dsonar.someArg=aValue -Dsonar.scanner.dumpToFile=./output.properties
env:
SONAR_TOKEN: FAKE_TOKEN
- name: Assert
run: |
./test/assertFileContains ./output.properties "sonar.someArg=a value with spaces"
./test/assertFileContains ./output.properties "sonar.someArg=aValue"
projectBaseDirInputTest:
name: >
'projectBaseDir' input

View file

@ -27,6 +27,4 @@ if [[ "$RUNNER_DEBUG" == '1' ]]; then
fi
unset JAVA_HOME
eval "args=(${INPUT_ARGS})"
sonar-scanner $debug_flag "-Dsonar.projectBaseDir=${INPUT_PROJECTBASEDIR}" "-Dsonar.host.url=${SONARCLOUD_URL}" "${args[@]}"
sonar-scanner $debug_flag -Dsonar.projectBaseDir=${INPUT_PROJECTBASEDIR} -Dsonar.host.url=${SONARCLOUD_URL} ${INPUT_ARGS}