Repository navigation
feat(ci): add sonar-exclusions input to reusable-ci-node - #441
Merged
Merged
Conversation
BryanFRD
enabled auto-merge (squash)
November 27, 2026 16:05
Contributor
There was a problem hiding this comment.
Approve. The change forwards a new sonar-exclusions input to reusable-sonarqube-scan. The inline fallback list is needed (an explicit '' would override the callee default) and matches the pinned scan workflow's default (efe7f97). Two non-blocking points below.
Findings
- minor
.github/workflows/reusable-ci-node.yml:127: a non-emptysonar-exclusionsreplaces the default list, but the description's example (**/__tests__/**) implies passing only the extra glob. A caller doing that losesnode_modules,dist,build,coverage,.next,*.min.jsand the rest, so Sonar starts analysing build output and vendored code. Fix: either append on line 333, e.g.exclusions: ${{ format('{0}{1}', '**/node_modules/**,**/dist/**,**/build/**,**/target/**,**/coverage/**,**/.next/**,**/out/**,**/vendor/**,**/*.min.js,**/*.min.css', inputs.sonar-exclusions != '' && format(',{0}', inputs.sonar-exclusions) || '') }}and say "appended to the default list" in the description, or keep replace semantics and state in the description that the caller must repeat the defaults. - suggestion
.github/workflows/reusable-ci-node.yml:333: the default list is a copy of the scan workflow's input default. Bumping the pinned SHA after that default changes will silently keep the old list here. Add a comment noting it must mirrorreusable-sonarqube-scan.yml.
Formal verification was not run for this pull request.
This was referenced Nov 27, 2026
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.
Adds an optional
sonar-exclusionsstring input toreusable-ci-node.yml, forwarded asexclusionstoreusable-sonarqube-scan.yml.The scan passes
-Dsonar.exclusionson the command line, which overridessonar-project.properties. Repos with colocated tests (**/__tests__/**) therefore could not keep tests out of the Sonar main source set, so tests counted as 0%-covered source (FerrLabs/MCP issue 502).sonar-exclusions, string, default ``.**/node_modules/**,**/dist/**,**/coverage/**,**/__tests__/**.Callers repin to the merge commit to use it.