Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 65
  • 119 stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-risks

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install sonar-dependency-risks in Claude Code

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

A

No 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 →

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.

sonar-dependency-risks Install

Add to stack

Loading.