Skip to content

[ACA-5022]Initial configuration for SonarQube cloud#181

Open
brahmanim wants to merge 2 commits into
redhat-cop:mainfrom
brahmanim:configure-sonarcloud
Open

[ACA-5022]Initial configuration for SonarQube cloud#181
brahmanim wants to merge 2 commits into
redhat-cop:mainfrom
brahmanim:configure-sonarcloud

Conversation

@brahmanim
Copy link
Copy Markdown

SUMMARY
Resolves ACA-5022
This work is being developed alongside ansible-community/ai-forge#9

Assisted-by: Claude Sonnet 4.6 noreply@anthropic.com

Comment thread README.md

GitHub does not expose organization secrets to workflows for pull requests opened from forks. The
Sonar job therefore only runs on pushes to this repository's branches and on pull requests where the
head branch is on `ansible-collections/cloud.aws_ops` (not from forks). That matches GitHub's
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.

Suggested change
head branch is on `ansible-collections/cloud.aws_ops` (not from forks). That matches GitHub's
head branch is on `redhat-cop/cloud.aws_ops` (not from forks). That matches GitHub's

Comment thread README.md
Comment on lines +7 to +9
Static analysis runs on [SonarCloud](https://sonarcloud.io) using `sonar-project.properties` and
`.github/workflows/sonarcloud.yml`. Coverage shown in Sonar comes from unit-test coverage exported as
`coverage.xml` at the repository root during CI.
Copy link
Copy Markdown
Contributor

@beeankha beeankha May 20, 2026

Choose a reason for hiding this comment

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

Suggested change
Static analysis runs on [SonarCloud](https://sonarcloud.io) using `sonar-project.properties` and
`.github/workflows/sonarcloud.yml`. Coverage shown in Sonar comes from unit-test coverage exported as
`coverage.xml` at the repository root during CI.
Static analysis runs on [SonarCloud](https://sonarcloud.io) using `sonar-project.properties` and
`.github/workflows/sonarcloud.yml`. **Note:** Coverage in SonarCloud is not wired yet.

Comment thread sonar-project.properties
# SonarCloud project configuration for cloud.aws_ops
# Complete documentation: https://docs.sonarqube.org/latest/analysis/analysis-parameters/

sonar.projectKey=ansible-collections_cloud.aws_ops
Copy link
Copy Markdown
Contributor

@beeankha beeankha May 21, 2026

Choose a reason for hiding this comment

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

👍 sonar.projectKey=ansible-collections_cloud.aws_ops, from my understanding, is the SonarCloud org/key, so this does not need to match the GH repository org name.

Copy link
Copy Markdown
Contributor

@beeankha beeankha left a comment

Choose a reason for hiding this comment

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

Other than a couple of minor changes, this LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants