diff --git a/.github/workflows/analysis_workflow.yml b/.github/workflows/analysis_workflow.yml index d72223212..35c2f8a7e 100644 --- a/.github/workflows/analysis_workflow.yml +++ b/.github/workflows/analysis_workflow.yml @@ -29,7 +29,7 @@ jobs: linux_sonarcloud: name: 'Linux VFX CY2023 SonarCloud' # Don't run on OCIO forks - if: github.repository == 'AcademySoftwareFoundation/OpenColorIO' + # if: github.repository == 'AcademySoftwareFoundation/OpenColorIO' # GH-hosted VM. The build runs in ASWF 'container' defined below. runs-on: ubuntu-latest container: @@ -44,8 +44,8 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 50 - - name: Install sonar-scanner and build-wrapper - uses: sonarsource/sonarcloud-github-c-cpp@v2 + - name: Install build-wrapper + uses: SonarSource/sonarqube-scan-action/install-build-wrapper@v6 - name: Install docs env run: share/ci/scripts/linux/dnf/install_docs_env.sh - name: Install tests env @@ -78,7 +78,11 @@ jobs: - name: Generate code coverage report run: share/ci/scripts/linux/run_gcov.sh - name: Run sonar-scanner + uses: SonarSource/sonarqube-scan-action@v6 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - run: sonar-scanner + with: + args: > + -Dsonar.host.url=https://sonarcloud.io + -Dsonar.cfamily.build-wrapper-output=_build/bw_output