Skip to content

Commit 1373cf7

Browse files
authored
SCSCANGHA-14 Enable debug logging when GitHub Actions debug logging is enabled (#43)
1 parent 49689c4 commit 1373cf7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

entrypoint.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,11 @@ fi
2020
if [[ -z "${SONARCLOUD_URL}" ]]; then
2121
SONARCLOUD_URL="https://sonarcloud.io"
2222
fi
23+
24+
debug_flag=''
25+
if [[ "$RUNNER_DEBUG" == '1' ]]; then
26+
debug_flag=' --debug '
27+
fi
28+
2329
unset JAVA_HOME
24-
sonar-scanner -Dsonar.projectBaseDir=${INPUT_PROJECTBASEDIR} -Dsonar.host.url=${SONARCLOUD_URL} ${INPUT_ARGS}
30+
sonar-scanner $debug_flag -Dsonar.projectBaseDir=${INPUT_PROJECTBASEDIR} -Dsonar.host.url=${SONARCLOUD_URL} ${INPUT_ARGS}

0 commit comments

Comments
 (0)