sonarsource/sonarqube-gh-agent-apps-plugin/sonar-dependency-risks
- community
Checking that the SKILL.md file is still in the repository.
Search for software composition analysis (SCA) dependency risks in a SonarQube project (project key optional when MCP integration already defines the default project)
Install
npx vskill@latest install sonarsource/sonarqube-gh-agent-apps-plugin/sonar-dependency-risksSKILL.md
SonarQube — Dependency Risks
Search for dependency risks (software composition analysis issues) in a SonarQube project, paired with the releases that appear in the analysed project, application, or portfolio.
Usage
Prerequisites
This skill requires SonarQube Advanced Security (available on SonarQube Cloud Enterprise plan), the SonarQube MCP Server to be configured, and the tool mcp__sonarqube__search_dependency_risks to be available in your session.
If a tool fails due to authentication problems, ask the user to ensure they have given their consent for automatic token exchange through SonarQube Cloud > My Account > Access Tokens > Agent Apps. Otherwise surface the tool error verbatim and stop. If the error indicates the feature is unavailable, note plainly that SCA requires SonarQube Advanced Security (SonarQube Cloud Enterprise plan).
Instructions
Step 1: Resolve the project key (only when needed)
MCP tools sometimes do not require projectKey when the SonarQube MCP Server has a default project for this workspace (e.g. SONARQUBE_PROJECT_KEY configured in the server env). Resolve a key only when you must pass it (tool schema requires it, or the user targets another project):
- If the user provided a project key, use it.
- Otherwise look for
sonar.projectKeyinsonar-project.propertiesat the repo root. - If still not found, omit `projectKey` in MCP calls and rely on the integration default.
Step 2: Parse optional flags from the user-provided arguments
| Flag | Maps to parameter | |
|---|---|---|
--branch <name> | branchKey | |
--pr <id> | pullRequestKey |
Step 3: Call mcp__sonarqube__search_dependency_risks
Include `projectKey` only if you resolved one in Step 1 and the tool requires it; otherwise omit it.
Omit projectKey from the payload when the integration default applies. Omit unused optional fields.
Step 4: Format the results
If risks are found, group by severity and present as a table:
Omit columns that are not present in the response. Omit severity sections that have no risks.
If no risks are found:
Step 5: Next steps
- To fix a vulnerable dependency: "Ask me to update `<dependency>` to a safe version."
- To check the quality gate: "Invoke the sonar-quality-gate skill (add a project key only if you are not using the integration default)."
- To check code-level security issues: "Invoke the sonar-list-issues skill with filters as needed (add a project key only if you are not using the MCP integration default)."
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/sonar-dependency-risks/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sonarsource/sonarqube-gh-agent-apps-plugin/sonar-dependency-risks)