Compare commits

...

2 commits

Author SHA1 Message Date
antoine.vinot
86f2bbdd77 Testing QA 2024-07-12 08:56:26 +02:00
vil02
bdec21efd9 Prevent globbing and word splitting 2024-07-07 21:59:03 +02:00
2 changed files with 6 additions and 6 deletions

View file

@ -10,5 +10,5 @@ fi
_tmp_file=$(ls "${INPUT_PROJECTBASEDIR}/" | head -1) _tmp_file=$(ls "${INPUT_PROJECTBASEDIR}/" | head -1)
PERM=$(stat -c "%u:%g" "${INPUT_PROJECTBASEDIR}/$_tmp_file") PERM=$(stat -c "%u:%g" "${INPUT_PROJECTBASEDIR}/$_tmp_file")
chown -R $PERM "${INPUT_PROJECTBASEDIR}/.scannerwork/" chown -R "$PERM" "${INPUT_PROJECTBASEDIR}/.scannerwork/"

View file

@ -21,10 +21,10 @@ if [[ -z "${SONARCLOUD_URL}" ]]; then
SONARCLOUD_URL="https://sonarcloud.io" SONARCLOUD_URL="https://sonarcloud.io"
fi fi
debug_flag=''
if [[ "$RUNNER_DEBUG" == '1' ]]; then debug=""
debug_flag=' --debug ' [[ "$RUNNER_DEBUG" == '1' ]] && debug="yes"
fi
unset JAVA_HOME unset JAVA_HOME
sonar-scanner $debug_flag -Dsonar.projectBaseDir=${INPUT_PROJECTBASEDIR} -Dsonar.host.url=${SONARCLOUD_URL} ${INPUT_ARGS}
sonar-scanner ${debug:+"--debug"} -Dsonar.projectBaseDir="${INPUT_PROJECTBASEDIR}" -Dsonar.host.url="${SONARCLOUD_URL}" "${INPUT_ARGS}"