Repository navigation
feat: opt-in Security Hotspot support (include-hotspots) - #96
Merged
Merged
Conversation
Fetches /api/hotspots/search (SQ >= 9.8) when include-hotspots is true, normalizes hotspots into the issue model (HIGH->CRITICAL, MEDIUM->MAJOR, LOW->MINOR), fetches rule details and derives SARIF security-severity from vulnerabilityProbability. Reuses the existing severity filter, PR file filter, stats and pin verification; warns and truncates above the 10k API cap, refuses incomplete pinned exports.
This was referenced Dec 4, 2026
vmvarela
added a commit
that referenced
this pull request
Dec 4, 2026
…be 2026.4 (#98) * Revert "feat: opt-in Security Hotspot support (include-hotspots) (#96)" This reverts commit 22e4171. * chore: drop hotspots-count output and require SonarQube 2026.4 Follow-up to reverting #96: the deprecated /api/hotspots/search endpoint is no longer queried, so the output is removed and the supported minimum moves to 2026.4, where hotspots are reported as issues.
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.
Closes #48.
What
Adds an opt-in
include-hotspotsinput. When enabled, the action fetches/api/hotspots/search(SonarQube >= 9.8) and exports Security Hotspots alongside issues.min-severity, PR file filtering, stats, check runs and SARIF conversion work unchanged./api/rules/showand derivessecurity-severityfromvulnerabilityProbability(hotspot rules report severity INFO).projectandprojectKeyto cover the 10.2 rename and 2026.6 removal;branchonly when configured;status=TO_REVIEWunlessinclude-resolved.pin-to-analysisan incomplete export fails withincomplete-fetch.Tests
security-severity, stats, and pin fetch ordering.format -- --check,lint,test:coverage(264 tests) andbuildpass;distrebuilt.Notes
/api/hotspots/searchwas internal before that.