From e44258b109568baa0df60ed515909fc6c72cba92 Mon Sep 17 00:00:00 2001 From: csaba-feher-sonarsource <93765926+csaba-feher-sonarsource@users.noreply.github.com> Date: Thu, 13 Jun 2024 14:34:22 +0200 Subject: [PATCH] Revert "SCSCANGHA-16 Support passing args with spaces (#79)" (#83) This reverts commit d08d592c0b694607865c089cba90bbf87c9a6d89. --- .github/workflows/qa.yml | 5 ++--- entrypoint.sh | 4 +--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index dfe76d6..f3af6f1 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -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 diff --git a/entrypoint.sh b/entrypoint.sh index af68fa6..9cd1c40 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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}