sonarcloud-security-audit

Fetch SonarCloud security vulnerabilities and hotspots for NASA PDS repositories into CSV.

1|1|Updated Nov 5, 2025
One-click install
npx skills add https://github.com/NASA-PDS/pds-agent-skills --skill sonarcloud-security-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sonarcloud-security-audit
Source: https://github.com/NASA-PDS/pds-agent-skills/tree/main/sonarcloud-security-audit
Command: npx skills add https://github.com/NASA-PDS/pds-agent-skills --skill sonarcloud-security-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill fetches all security-related issues (vulnerabilities and security hotspots) from SonarCloud for NASA PDS repositories and exports them to a CSV file for security triage and reporting.

Core Features & Use Cases

  • Fetches vulnerabilities and hotspots across all NASA PDS projects
  • Exports results to a CSV file with structured fields for triage
  • Handles pagination and rate limits; supports organization-wide security audits

Quick Start

Run the fetch-security-issues.mjs script with your organization key and an output CSV path after setting the SONARCLOUD_TOKEN environment variable.

Frequently Asked Questions about sonarcloud-security-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I export SonarCloud security vulnerabilities and hotspots to a CSV?

You can export SonarCloud security vulnerabilities and hotspots to a CSV by running the fetch-security-issues script with your organization key and output path, provided the SonarCloud API token environment variable is set.

Can I automate an organization-wide SonarCloud security audit for multiple repositories?

Yes, you can automate an organization-wide SonarCloud security audit across all repositories using this script, which handles per-project pagination and exports the consolidated security data into a structured CSV file.

Do I need a specific SonarCloud API token permission to fetch security hotspots?

You need a SonarCloud API token with read access to fetch security hotspots and vulnerabilities, which the script uses to handle authentication and robustly manage network or authentication errors during the export.

What happens if I hit SonarCloud API rate limits while fetching security issues?

If you hit SonarCloud API rate limits while fetching security issues, the script includes built-in rate-limit handling and pagination logic to ensure all vulnerability and hotspot data across the organization is reliably exported to CSV.

What is the best way to triage SonarCloud security data for NASA PDS repositories?

The best way to triage SonarCloud security data is to export all vulnerabilities and hotspots to a structured CSV file, which organizes the security findings across the nasa-pds organization for comprehensive reporting and analysis.