Skip to content

ci: point SonarCloud analysis at the ASF project (apache/apache_caldera) - #3448

Merged
HackedRico merged 9 commits into
masterfrom
sonarcloud-asf-org
Dec 1, 2026
Merged

HackedRico merged 9 commits into
masterfrom
sonarcloud-asf-org

Conversation

@deacon-mp

Copy link
Copy Markdown
Contributor

Updates sonar-project.properties and the Sonar workflows (quality.yml, sonar-fork-pr.yml) to analyze under organization apache / project apache_caldera (INFRA-28688), replacing the pre-donation mitre project. The scan needs a SONAR_TOKEN valid for the apache org; continue-on-error is kept until a green scan is confirmed.

Update sonar-project.properties and the Sonar workflows to use organization apache and project key apache_caldera (INFRA-28688), replacing the pre-donation mitre project. The scan needs a SONAR_TOKEN valid for the apache SonarCloud org.
Copilot AI balanced review requested due to automatic review settings December 1, 2026 03:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the SonarCloud configuration update to the ASF project.

No open issues 🎉

What changed in this PR

Redirects Caldera’s SonarCloud analysis from the pre-donation MITRE project to the ASF organization and project (apache/apache_caldera).

Changes:

  • Updates the shared SonarCloud configuration and fork-PR scan arguments to use the ASF project.
  • Clarifies that continue-on-error remains enabled until a successful scan with a valid Apache-org SONAR_TOKEN; runtime behavior is unchanged.
File Description
sonar-project.properties Sets the organization to apache and project key to apache_caldera.
.github/​workflows/​sonar-fork-pr.yml Points fork-PR scan arguments at the ASF project.
.github/​workflows/​quality.yml Updates comments explaining when to remove continue-on-error.

Review effort: Balanced

@deacon-mp
deacon-mp requested review from HackedRico and a balanced review from Copilot December 1, 2026 15:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the SonarCloud migration to the ASF organization and project.

No open issues 🎉

Review effort: Balanced

@HackedRico HackedRico left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The org and key match the SonarCloud project. The scan step in this PR's own run still fails with a 403 though, and continue-on-error reports it green, so the CI scan is not working yet. Two fixes inline. The fork PR scan in sonar-fork-pr.yml is broken for a separate reason and gets its own PR, so leave that file's token as it is.

Comment thread .github/workflows/quality.yml Resolved
Comment thread .github/workflows/quality.yml Resolved
Copilot AI balanced review requested due to automatic review settings December 1, 2026 16:04
Comment thread .github/workflows/quality.yml Resolved
Comment thread .github/workflows/quality.yml Resolved
The scan step fails with HTTP 403 because SONAR_TOKEN is the repo secret from before the donation. The apache org token is shared with this repo as SONARCLOUD_TOKEN.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The fork scanner still uses secrets.SONAR_TOKEN instead of secrets.SONARCLOUD_TOKEN, leaving fork scans against apache_caldera with an old or unset credential.

1 open issue

Review effort: Balanced

Comment thread .github/workflows/sonar-fork-pr.yml Resolved
quality.yml reads the apache org token from SONARCLOUD_TOKEN. The fork PR scan still read SONAR_TOKEN, the repo secret from before the donation, which SonarCloud rejects with HTTP 403.
Copilot AI balanced review requested due to automatic review settings December 1, 2026 18:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Removing continue-on-error before the new ASF project and token are validated makes authentication or configuration failures block the job, contrary to the stated migration plan.

1 open issue
1 resolved since last review

Review effort: Balanced

Comment thread .github/workflows/quality.yml Resolved
Allow SonarQube scan to continue on error in workflow.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings December 1, 2026 18:54
@HackedRico
HackedRico self-requested a review December 1, 2026 18:54
@sonarqubecloud

sonarqubecloud Bot commented Dec 1, 2026

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the migration to the ASF-managed SonarCloud project.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@HackedRico HackedRico left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@HackedRico
HackedRico merged commit 4596ce2 into master Dec 1, 2026
14 checks passed
@HackedRico
HackedRico deleted the sonarcloud-asf-org branch December 1, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants