Skip to content

Commit

Permalink
ci: Force downgrade of SonarScanner (latest v5.0.0.2966) to 4.8.0.295…
Browse files Browse the repository at this point in the history
…6 (latest known-good version)

The latest version is producing the following (internal) error:
```
java.io.IOException: Cannot run program ".../.scannerwork/.sonartmp/5786710878849275698/subprocess" (in directory "..."): error=13, Permission denied
```
  • Loading branch information
bostjan committed Jul 27, 2023
1 parent b57c790 commit fac1269
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/code-qa-sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,16 @@ jobs:
- name: Install SonarClound scanner
run: |
rm -rf sonar-scanner*
LATEST_SONAR_SCANNER_VERSION=`wget -q -O - --header "Accept: application/vnd.github.v3+json" https://api.github.com/repos/SonarSource/sonar-scanner-cli/releases/latest | grep '"tag_name"' | head -n1 | cut -d '"' -f4`
# Temporarily disabling using the latest SonarScanner version (5.0.0.2966),
# as it is producing the following error:
# java.io.IOException: Cannot run program ".../.scannerwork/.sonartmp/5786710878849275698/subprocess" (in directory "..."): error=13, Permission denied
#
#LATEST_SONAR_SCANNER_VERSION=`wget -q -O - --header "Accept: application/vnd.github.v3+json" https://api.github.com/repos/SonarSource/sonar-scanner-cli/releases/latest | grep '"tag_name"' | head -n1 | cut -d '"' -f4`
#
# Replacing it with this static definition for now:
LATEST_SONAR_SCANNER_VERSION="4.8.0.2856"
echo "Got the latest Sonar Scanner version: $LATEST_SONAR_SCANNER_VERSION"
LATEST_SONAR_SCANNER_ZIP="sonar-scanner-cli-$LATEST_SONAR_SCANNER_VERSION-linux.zip"
LATEST_SONAR_SCANNER_DIR="sonar-scanner-$LATEST_SONAR_SCANNER_VERSION-linux"
Expand Down

0 comments on commit fac1269

Please sign in to comment.