Repository navigation
Fix: Name the Sonar project SonarCloud creates - #1
Merged
ModeSevenIndustrialSolutions merged 1 commit intoSep 23, 2026
Conversation
The seed named the project test-python-submodules, but SonarCloud names a project it creates from a GitHub repository <organization>_<repository>. The unprefixed key names no project, so the security-workflows legs asserting on this fixture's analysis would have read nothing. The convention was copied from test-python-project, whose properties file carries the same stale key: SonarCloud knows that project only as lfreleng-actions_test-python-project. Only the parent level's file changes. The submodule pins name the first three commits by SHA and are untouched. Co-authored-by: Claude <[email protected]> Signed-off-by: Matthew Watkins <[email protected]>
ModeSevenIndustrialSolutions
requested review from
a team
and
a balanced review from Copilot
September 23, 2026 17:43
2 tasks
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The focused configuration correction matches SonarCloud naming and introduces no unresolved issues.
Review effort: Balanced
Findings: None
What changed in this PR
Corrects the SonarCloud project key so downstream security-workflow assertions query the actual repository project.
Changes:
- Prefixes the project key with the SonarCloud organization.
- Documents the naming convention and related fixture discrepancy.
| File | Description |
|---|---|
sonar-project.properties |
Corrects and explains the SonarCloud project key. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
zxiiro
approved these changes
Sep 23, 2026
zxiiro
left a comment
There was a problem hiding this comment.
🤖 Auto-approved by agent: reviewed workflow/code change for security and CI/CD impact, found low risk. Aligns sonar.projectKey to SonarCloud's org_repo naming for this fixture; comments only otherwise; no secrets, permissions, or workflow logic changes.
ModeSevenIndustrialSolutions
merged commit Sep 23, 2026
9e60865
into
lfreleng-actions:main
10 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The seed named the Sonar project
test-python-submodules. SonarCloud names a project it creates from a GitHub repository<organization>_<repository>, so the unprefixed key names no project at all.Found while building the assertions that consume this fixture (lfreleng-actions/security-workflows#74). Those legs query SonarCloud for this project's analysis, and against the current key they would read nothing.
Evidence
The convention was copied from
test-python-project, whose properties file carries the same stale key. SonarCloud knows that project only under the prefixed name:The only two anonymously visible projects in the
lfreleng-actionsSonarCloud organisation both follow the prefixed form:lfreleng-actions_lftools-uvandlfreleng-actions_test-python-project.Scope
One file at the parent level. The submodule pins name the first three commits by SHA, and they are untouched: all four seed commits remain ancestors of this branch, and the tip still pins
directto0abcde7.test-python-projecthas the same stale key but still works in practice, because an explicitsonar_project_keyor SonarCloud's automatic analysis can override it. It deserves its own fix in its own repository rather than a drive-by here.Validation
prek run --all-files: all hooks passzizmor --persona auditor: 0 findingsaislop ci --changes --base upstream/main: 0 errors, 0 warningsgitlint: clean; commit signed with DCO sign-off