sonar-dependency-risks
Skill by SonarSource
Searches software composition analysis (SCA) dependency risks in a SonarQube project and lists them by severity with CVE IDs. It is for developers who use SonarQube Advanced Security and want to review vulnerable dependencies from their AI assistant.
Install sonar-dependency-risks
Built from the published package, never by AI.
git clone --depth 1 https://github.com/SonarSource/sonarqube-agent-plugins /tmp/sonarqube-agent-plugins && mkdir -p ~/.claude/skills && cp -r /tmp/sonarqube-agent-plugins/skills/sonar-dependency-risks ~/.claude/skills/sonar-dependency-risksRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/SonarSource/sonarqube-agent-plugins /tmp/sonarqube-agent-plugins && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/sonarqube-agent-plugins/skills/sonar-dependency-risks ~/.gemini/antigravity-cli/skills/sonar-dependency-risksAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install sonar-dependency-risks in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill searches for dependency risks, meaning software composition analysis (SCA) issues, in a SonarQube project. It can target the default branch, a named branch, or a pull request, and it pages through all results. When risks are found, the skill groups them by severity in a table that shows the dependency, version, risk and CVE. It uses the SonarQube MCP Server tool mcp__sonarqube__search_dependency_risks, with a CLI fallback that calls the SonarQube V2 SCA endpoint through sonar api.
The skill is aimed at teams that use SonarQube Advanced Security. It requires the SonarQube MCP Server to be configured and a container runtime such as Docker, Podman or Nerdctl to be running. If the tool is unavailable, the skill explains likely causes and can run the sonar-integrate skill to set up the integration.
Written from the project's SKILL.md and checked against it.
What it can do
- mcp__sonarqube__search_dependency_risksSearches dependency risks in a SonarQube project, with branch or pull request filters.
- CLI fallbackCalls the SCA issues-releases API through sonar api when the MCP tool is unavailable.
- Severity groupingPresents found risks in tables grouped by severity with CVE identifiers.
- PaginationRequests further pages of results until every risk has been retrieved.
- Next stepsSuggests running the quality gate or code-level security issue skills.
What you need
- SonarQube Advanced Security (SonarQube Cloud Enterprise, or SonarQube Server 2025.4 Enterprise or higher)
- SonarQube MCP Server configured
- Docker, Podman or Nerdctl container runtime running
Try asking
- Search for dependency risks in my SonarQube project
- Show dependency risks on the feature/auth branch of my-project
- List dependency risks for pull request 42 in my-project
Good to know
- Requires SonarQube Advanced Security, which is not available on every plan.
- The MCP server runs in a container, so the runtime must be running.
- The MCP tool and the CLI fallback both return pages of 50 results at most per request.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/sonar-dependency-risks/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadGrepBash(docker ps:*)Bash(podman ps:*)Bash(nerdctl ps:*)Bash(sonar:*)
Alternatives to sonar-dependency-risks
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
sonar-dependency-risks: common questions
Do I need to pass a project key every time?
No. The skill reads sonar.projectKey from sonar-project.properties or uses the default project stored by the MCP integration, so the key can be omitted.
Can it check a pull request or a branch instead of the main branch?
Yes. The --branch flag selects a branch and --pr selects a pull request. The two flags cannot be used together.
Which SonarQube editions does it support?
The source says it requires SonarQube Advanced Security, available on SonarQube Cloud Enterprise or SonarQube Server 2025.4 Enterprise edition or higher.
How do I install sonar-dependency-risks?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is sonar-dependency-risks free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is sonar-dependency-risks safe to use?
It scores 65 of 100. Grades: maintenance A, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to sonar-dependency-risks?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
