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 GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| sonar_host_url | SonarQube Server or SonarQube Cloud base URL. | yes | — |
| sonar_project_key | SonarQube project key. | yes | — |
| components | Comma-separated SonarQube component keys. Defaults to sonar_project_key. Use projectKey:path/to/file to select source files. | no | — |
| sonar_branch | Optional SonarQube branch. | no | — |
| sonar_organization | Optional SonarQube Cloud organization. | no | — |
| max_issues | Maximum number of issues to select. | no | 10 |
| statuses | Comma-separated SonarQube issue statuses. | no | OPEN |
| type | SonarQube issue type. Must be one of: CODE_SMELL, BUG, VULNERABILITY. | no | — |
| severities | Comma-separated SonarQube severities. Example value: BLOCKER,CRITICAL,MAJOR,MINOR,INFO | no | — |
| impactSoftwareQualities | Comma-separated SonarQube impact software qualities. | no | — |
| impactSeverities | Comma-separated SonarQube impact severities. Example value: INFO, LOW, MEDIUM, HIGH, BLOCKER | no | — |
| cleanCodeAttributeCategories | Comma-separated clean code attribute categories or equivalent supported filter values. Possivle values: ADAPTABLE, CONSISTENT, INTENTIONAL, RESPONSIBLE. Example value: ADAPTABLE,INTENTIONAL | no | — |
| rules | Comma-separated SonarQube rule keys. Example value: java:S1144 | no | — |
| include_rule_details | Include SonarQube rule details in the prompt. | no | true |
| include_code_snippets | Include local code snippets in the prompt. | no | true |
| code_snippet_context_lines | Number of local context lines around each issue. | no | 20 |
| copilot_model | Optional model name to pass to GitHub Copilot CLI. Required when using a custom Copilot model provider. | no | — |
| copilot_provider_type | Optional Copilot CLI model provider type. Supported values: openai, azure, anthropic. Omit for GitHub-hosted Copilot models. | no | — |
| copilot_provider_base_url | Optional base URL for a Copilot CLI custom model provider, such as an Azure Foundry OpenAI-compatible endpoint. | no | — |
| copilot_offline | Run Copilot CLI in offline mode when using a configured local or private model provider. | no | false |
| copilot_extra_instructions | Extra reviewer-approved instructions to include in the Copilot prompt. | no | — |
| branch_prefix | Prefix for generated fix branches. | no | copilot/sonar-fixes |
| base_branch | Base branch for the pull request. Defaults to detected repository default branch. | no | — |
| pull_request_draft | Create a draft pull request. | no | true |
| fail_if_no_issues | Fail when no matching SonarQube issues are found. | no | false |
| copilot_allowed_tools | Comma-separated Copilot CLI permission patterns to add alongside file writes. Example: shell(dotnet:*),shell(python:*) | no | — |
| copilot_allow_all_tools | Allow unrestricted Copilot CLI tool execution, overriding copilot_allowed_tools. When false, file writes and configured patterns are pre-approved. | no | false |
Outputs
no outputs