From 97c7b7ff57cb71fe302800055516a239151f62d4 Mon Sep 17 00:00:00 2001 From: "kevin.hinz" <107544908+kevin-hinz@users.noreply.github.com> Date: Fri, 3 Jul 2026 09:50:54 +0200 Subject: [PATCH 1/2] update the readme --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f67f94f20..2a7e8ac70 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,10 @@ The SonarQube CLI integrates enterprise-grade static analysis into your developm - **🔒 Secret Detection** — Scan code for hardcoded credentials and prevent secrets from being sent to LLM providers - **⚡ Fast Feedback Loop** — Get server-side issue detection on your local changes without waiting for CI/CD - **🤖 AI-Assisted Fixes** — Generate remediation suggestions for security vulnerabilities (SonarQube Cloud) -- **🔗 Agent Integration** — Seamless hooks for Claude Code, GitHub Copilot, and other AI coding tools +- **🔗 Agent Integration** — Seamless hooks for Claude Code, GitHub Copilot CLI, and other AI coding tools - **📊 Scriptable** — Query and manage SonarQube issues programmatically with JSON output -**Use it standalone or integrate with:** Git hooks, Claude Code, GitHub Copilot, CI/CD pipelines, custom automation +**Use it standalone or integrate with:** Git hooks, Claude Code, GitHub Copilot CLI, CI/CD pipelines, custom automation > **🤖 For AI Agents:** If you are an AI agent reading this, navigate to [docs/llms.txt](https://github.com/SonarSource/sonarqube-cli/blob/master/docs/llms.txt) for machine-readable > command documentation optimized for LLM consumption. @@ -39,7 +39,7 @@ The SonarQube CLI integrates enterprise-grade static analysis into your developm - [Integrations](#integrations) - [Claude Code Integration](#claude-code-integration) - [Git Hooks](#git-hooks) - - [GitHub Copilot Integration](#github-copilot-integration) + - [GitHub Copilot CLI Integration](#github-copilot-cli-integration) - [Example Outputs](#example-outputs) - [Troubleshooting](#troubleshooting) - [State Management](#state-management) @@ -52,7 +52,7 @@ The SonarQube CLI integrates enterprise-grade static analysis into your developm The SonarQube CLI is designed for three distinct use cases: -1. **🤖 Agentic Use** — Built-in support for AI coding agents (Claude Code, GitHub Copilot) with pre-tool hooks that prevent secrets from being sent to LLM providers +1. **🤖 Agentic Use** — Built-in support for AI coding agents (Claude Code, GitHub Copilot CLI) with pre-tool hooks that prevent secrets from being sent to LLM providers ```bash sonar integrate claude -g # Now Claude Code will automatically scan for secrets before processing your code @@ -289,7 +289,7 @@ sonar integrate git --hook pre-commit --non-interactive # Skips all prompts, fails fast on errors ``` -### GitHub Copilot Integration +### GitHub Copilot CLI Integration **Global setup:** @@ -381,7 +381,7 @@ issues[1]: type: CODE_SMELL ``` -This format is designed for parsing by LLMs and can be used with Claude Code, GitHub Copilot, or custom AI workflows. +This format is designed for parsing by LLMs and can be used with Claude Code, GitHub Copilot CLI, or custom AI workflows. ## Troubleshooting From 8cc92c6c592487d2ebdc7e53243987e12a4f0f57 Mon Sep 17 00:00:00 2001 From: "kevin.hinz" <107544908+kevin-hinz@users.noreply.github.com> Date: Fri, 3 Jul 2026 09:51:05 +0200 Subject: [PATCH 2/2] update the command-tree --- src/cli/command-tree.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/command-tree.ts b/src/cli/command-tree.ts index a1ee11b50..956b90382 100644 --- a/src/cli/command-tree.ts +++ b/src/cli/command-tree.ts @@ -309,7 +309,7 @@ integrateCommand integrateCommand .command('copilot') .description( - 'Setup SonarQube integration for Copilot. This will install secrets scanning hooks, configure SonarQube Agentic Analysis and MCP Server.', + 'Setup SonarQube integration for GitHub Copilot CLI. This will install secrets scanning hooks, configure SonarQube Agentic Analysis and MCP Server.', ) .option( '-g, --global', @@ -622,7 +622,7 @@ hookCommand hookCommand .command('copilot-pre-tool-use') - .description('PreToolUse handler for Copilot: scan files for secrets before agent reads them') + .description('PreToolUse handler for GitHub Copilot CLI: scan files for secrets before agent reads them') .anonymousAction(() => copilotPreToolUse()); hookCommand