SQSCANGHA-3 Permission cleanup doesn't run if the scanner exits with a non-0 code (#33)

This commit is contained in:
Benjamin Svobodny
2022-07-05 09:15:01 -04:00
committed by GitHub
parent bdba66714e
commit fd8151470c
6 changed files with 14 additions and 5 deletions

View File

@@ -27,7 +27,3 @@ unset JAVA_HOME
sonar-scanner -Dsonar.projectBaseDir=${INPUT_PROJECTBASEDIR} ${INPUT_ARGS}
_tmp_file=$(ls "${INPUT_PROJECTBASEDIR}/" | head -1)
PERM=$(stat -c "%u:%g" "${INPUT_PROJECTBASEDIR}/$_tmp_file")
chown -R $PERM "${INPUT_PROJECTBASEDIR}/"