Skip to content

Add optional SonarQube Cloud scan - #4

Merged
stasimus merged 1 commit into
mainfrom
add-sonar-scan
Aug 7, 2026
Merged

Add optional SonarQube Cloud scan#4
stasimus merged 1 commit into
mainfrom
add-sonar-scan

Conversation

@stasimus

@stasimus stasimus commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Adds sonar, sonar_project_key and sonar_args inputs. Scans once, on the first Scala version only, since SonarQube tracks one analysis per branch. Config is passed as scanner arguments, so no per-repo sonar-project.properties is needed.

Off by default, because three prerequisites are unmet:

  1. No SONAR_TOKEN organization secret exists. Enabling it before that will fail.
  2. The project must already exist on SonarQube Cloud — the scanner reports, it does not create.
  3. Automatic Analysis must be off for the project; it and CI scanning are mutually exclusive.

Context: the Sonar app currently creates a check suite on every commit in repos it never analyses, leaving a permanently queued check with no result (cats-helper, scache, sstream, kafka-flow). skafka and scassandra report fine with no repo config at all, so this was never a missing-file problem.

@stasimus
stasimus merged commit 2a389d2 into main Aug 7, 2026
1 check passed
@stasimus
stasimus deleted the add-sonar-scan branch August 7, 2026 18:58
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.

1 participant