From f1ca17ad147df8940498d972c53b48eb27788acf Mon Sep 17 00:00:00 2001 From: "cuneyt.ozdas" Date: Tue, 13 Jan 2026 09:55:00 -0800 Subject: [PATCH 1/3] - Trying to fix analysis workflow by updating the SonarSource action Signed-off-by: cuneyt.ozdas --- .github/workflows/analysis_workflow.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/analysis_workflow.yml b/.github/workflows/analysis_workflow.yml index d72223212..057184c38 100644 --- a/.github/workflows/analysis_workflow.yml +++ b/.github/workflows/analysis_workflow.yml @@ -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@v4 - name: Install docs env run: share/ci/scripts/linux/dnf/install_docs_env.sh - name: Install tests env @@ -78,7 +78,7 @@ jobs: - name: Generate code coverage report run: share/ci/scripts/linux/run_gcov.sh - name: Run sonar-scanner + uses: SonarSource/sonarqube-scan-action@v4 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - run: sonar-scanner From ff834546e2fb8089b0deafbbe5bc94bda5b7ce7c Mon Sep 17 00:00:00 2001 From: "cuneyt.ozdas" Date: Tue, 13 Jan 2026 12:14:51 -0800 Subject: [PATCH 2/3] Try to enable analysis on forks to see if that works (unlikely) Signed-off-by: cuneyt.ozdas --- .github/workflows/analysis_workflow.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/analysis_workflow.yml b/.github/workflows/analysis_workflow.yml index 057184c38..d584218ae 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,7 +44,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 50 - - name: Install build-wrapper + - name: Install build-wrapper uses: SonarSource/sonarqube-scan-action/install-build-wrapper@v4 - name: Install docs env run: share/ci/scripts/linux/dnf/install_docs_env.sh From 12677358489f5ed947e7bde707ccf5f181f2af13 Mon Sep 17 00:00:00 2001 From: "cuneyt.ozdas" Date: Tue, 13 Jan 2026 14:20:48 -0800 Subject: [PATCH 3/3] - bump actions to v6 - set output argument explicitely Signed-off-by: cuneyt.ozdas --- .github/workflows/analysis_workflow.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/analysis_workflow.yml b/.github/workflows/analysis_workflow.yml index d584218ae..35c2f8a7e 100644 --- a/.github/workflows/analysis_workflow.yml +++ b/.github/workflows/analysis_workflow.yml @@ -45,7 +45,7 @@ jobs: with: fetch-depth: 50 - name: Install build-wrapper - uses: SonarSource/sonarqube-scan-action/install-build-wrapper@v4 + 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@v4 + uses: SonarSource/sonarqube-scan-action@v6 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + with: + args: > + -Dsonar.host.url=https://sonarcloud.io + -Dsonar.cfamily.build-wrapper-output=_build/bw_output