Skip to content

Commit

Permalink
SCSCANGHA-14 Enable debug logging when GitHub Actions debug logging i…
Browse files Browse the repository at this point in the history
…s enabled (#43)
  • Loading branch information
ari-becker authored May 21, 2024
1 parent 49689c4 commit 1373cf7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,11 @@ fi
if [[ -z "${SONARCLOUD_URL}" ]]; then
SONARCLOUD_URL="https://sonarcloud.io"
fi

debug_flag=''
if [[ "$RUNNER_DEBUG" == '1' ]]; then
debug_flag=' --debug '
fi

unset JAVA_HOME
sonar-scanner -Dsonar.projectBaseDir=${INPUT_PROJECTBASEDIR} -Dsonar.host.url=${SONARCLOUD_URL} ${INPUT_ARGS}
sonar-scanner $debug_flag -Dsonar.projectBaseDir=${INPUT_PROJECTBASEDIR} -Dsonar.host.url=${SONARCLOUD_URL} ${INPUT_ARGS}

0 comments on commit 1373cf7

Please sign in to comment.