fix(sonar): forward branch name to project_analyses/search#884
Conversation
SonarQube's project_analyses/search endpoint defaults to the `main` branch when no branch param is supplied, so `kosli attest sonar` could not locate analyses on non-default branches and failed with "analysis with ID not found". The CE task response already exposes the branch name; forward it on the lookup. Related: #861
|
Claude finished @mbevc1's task in 1m 55s —— View job PR Review: fix(sonar): forward branch name to project_analyses/search
Static AnalysisAll checks pass:
Code ReviewThe fix is correct and well-targeted. I verified that the other caller of Tests are solid. Two clean cases covering the fix:
Both tests use Minor observations
SummaryClean, minimal fix for a real bug. The change is well-scoped, the tests verify the right behavior, and it doesn't touch any unrelated code. Looks good to merge. |
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
SonarQube's project_analyses/search endpoint defaults to the
mainbranch when no branch param is supplied, sokosli attest sonarcould not locate analyses on non-default branches and failed with "analysis with ID not found". The CE task response already exposes the branch name; forward it on the lookup.Also adds Sonar testing.
Related: #861