lanubisl/SonarQube Copilot Fix

Group selected SonarQube issues by rule and fix each group in an isolated Copilot session and draft pull request.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
sonar_host_urlSonarQube Server or SonarQube Cloud base URL.yes
sonar_project_keySonarQube project key.yes
componentsComma-separated SonarQube component keys. Defaults to sonar_project_key. Use projectKey:path/to/file to select source files.no
sonar_branchOptional SonarQube branch.no
sonar_organizationOptional SonarQube Cloud organization.no
max_issuesMaximum number of issues to select.no10
statusesComma-separated SonarQube issue statuses.noOPEN
typeSonarQube issue type. Must be one of: CODE_SMELL, BUG, VULNERABILITY.no
severitiesComma-separated SonarQube severities. Example value: BLOCKER,CRITICAL,MAJOR,MINOR,INFOno
impactSoftwareQualitiesComma-separated SonarQube impact software qualities.no
impactSeveritiesComma-separated SonarQube impact severities. Example value: INFO, LOW, MEDIUM, HIGH, BLOCKERno
cleanCodeAttributeCategoriesComma-separated clean code attribute categories or equivalent supported filter values. Possivle values: ADAPTABLE, CONSISTENT, INTENTIONAL, RESPONSIBLE. Example value: ADAPTABLE,INTENTIONALno
rulesComma-separated SonarQube rule keys. Example value: java:S1144no
include_rule_detailsInclude SonarQube rule details in the prompt.notrue
include_code_snippetsInclude local code snippets in the prompt.notrue
code_snippet_context_linesNumber of local context lines around each issue.no20
copilot_modelOptional model name to pass to GitHub Copilot CLI. Required when using a custom Copilot model provider.no
copilot_provider_typeOptional Copilot CLI model provider type. Supported values: openai, azure, anthropic. Omit for GitHub-hosted Copilot models.no
copilot_provider_base_urlOptional base URL for a Copilot CLI custom model provider, such as an Azure Foundry OpenAI-compatible endpoint.no
copilot_offlineRun Copilot CLI in offline mode when using a configured local or private model provider.nofalse
copilot_extra_instructionsExtra reviewer-approved instructions to include in the Copilot prompt.no
branch_prefixPrefix for generated fix branches.nocopilot/sonar-fixes
base_branchBase branch for the pull request. Defaults to detected repository default branch.no
pull_request_draftCreate a draft pull request.notrue
fail_if_no_issuesFail when no matching SonarQube issues are found.nofalse
copilot_allowed_toolsComma-separated Copilot CLI permission patterns to add alongside file writes. Example: shell(dotnet:*),shell(python:*)no
copilot_allow_all_toolsAllow unrestricted Copilot CLI tool execution, overriding copilot_allowed_tools. When false, file writes and configured patterns are pre-approved.nofalse

no outputs