]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-15430 Fix C-family tutorial for GH Actions on linux
authorJeremy Davis <jeremy.davis@sonarsource.com>
Tue, 9 Nov 2021 14:02:36 +0000 (15:02 +0100)
committersonartech <sonartech@sonarsource.com>
Wed, 10 Nov 2021 20:03:43 +0000 (20:03 +0000)
server/sonar-web/src/main/js/components/tutorials/github-action/commands/CFamily.tsx
server/sonar-web/src/main/js/components/tutorials/github-action/commands/__tests__/__snapshots__/CFamily-test.tsx.snap

index e10317533f4b855ae9b6d8a5b0f402b8f37e8faa..552067f30e057ba7e84eba23c4263cd26a95a69b 100644 (file)
@@ -48,10 +48,17 @@ const STEPS = {
         env:
           SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }}
 
+      - name: Download and install the SonarScanner
+        env:
+          SONAR_SCANNER_VERSION: 4.6.2.2472
+        run: |
+          curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-\${{ env.SONAR_SCANNER_VERSION }}-linux.zip
+          unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
+          echo "$HOME/.sonar/sonar-scanner-\${{ env.SONAR_SCANNER_VERSION }}-linux/bin" >> $GITHUB_PATH
+
       - name: SonarQube analysis
-        uses: SonarSource/sonarqube-scan-action@v1.0.0
-        with:
-          args: -Dsonar.cfamily.build-wrapper-output=bw-output
+        run: |
+          sonar-scanner --define sonar.cfamily.build-wrapper-output=bw-output  
         env:
           SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }}
           SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }}`,
index 38c323434e5268d1deafa077a963c04e4d68f518..112dd555078dca8654c155e1746722ad2ffd1f73 100644 (file)
@@ -117,10 +117,17 @@ jobs:
         env:
           SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }}
 
+      - name: Download and install the SonarScanner
+        env:
+          SONAR_SCANNER_VERSION: 4.6.2.2472
+        run: |
+          curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-\${{ env.SONAR_SCANNER_VERSION }}-linux.zip
+          unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
+          echo \\"$HOME/.sonar/sonar-scanner-\${{ env.SONAR_SCANNER_VERSION }}-linux/bin\\" >> $GITHUB_PATH
+
       - name: SonarQube analysis
-        uses: SonarSource/sonarqube-scan-action@v1.0.0
-        with:
-          args: -Dsonar.cfamily.build-wrapper-output=bw-output
+        run: |
+          sonar-scanner --define sonar.cfamily.build-wrapper-output=bw-output  
         env:
           SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }}
           SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }}