From sonarcloud-security-triaging
Export GitHub Dependabot dependency vulnerability alerts for NASA PDS repositories to JSON. Use when the user requests to export, fetch, or download Dependabot alerts, dependency vulnerability data, or CVE reports for PDS projects.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sonarcloud-security-triaging:dependabot-alerts-exportingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill fetches all Dependabot dependency vulnerability alerts from GitHub for repositories under the NASA PDS organization and exports them to JSON for triage.
This skill fetches all Dependabot dependency vulnerability alerts from GitHub for repositories under the NASA PDS organization and exports them to JSON for triage.
Dependabot alerts surface known CVEs in third-party package dependencies — these are generally more critical than static analysis findings because they represent exploitable vulnerabilities in widely-known packages, often with public proof-of-concept exploits.
GITHUB_TOKEN environment variable with security_events scope
security_events scoperead:org + repo scopesexport GITHUB_TOKEN=$(gh auth token)1. dependabot-alerts-exporting → THIS SKILL: Export alerts to JSON
2. dependabot-alerts-triaging → Analyze & suggest triage decisions
3. (Manual) → Dismiss alerts via GitHub UI or API
Before writing any files, ask the user where to save output:
Where should I save the export files?
1. Current directory: <show $PWD>
2. /tmp
3. Custom path
Store the choice as OUTPUT_DIR. Never write output files inside the skill's own directory.
echo "${GITHUB_TOKEN:+set}" || echo "not set"
If not set, guide the user:
export GITHUB_TOKEN=$(gh auth token)"security_events (for org members) or read:org + repo (for admins)"cd <skill-directory>
node scripts/fetch-dependabot-alerts.mjs nasa-pds "$OUTPUT_DIR/dependabot-alerts-nasa-pds-$(date +%Y%m%d).json"
Options:
| Flag | Description | Example |
|---|---|---|
--severity | Filter by severity (comma-separated) | --severity critical,high |
--state | Alert state (default: open) | --state open |
--repo | Single repository only | --repo validate |
--ecosystem | Package ecosystem | --ecosystem npm |
Common invocations:
# All open alerts (default)
node scripts/fetch-dependabot-alerts.mjs nasa-pds output.json
# Critical and high only
node scripts/fetch-dependabot-alerts.mjs nasa-pds output.json --severity critical,high
# Single repo
node scripts/fetch-dependabot-alerts.mjs nasa-pds output.json --repo registry
# Already-dismissed alerts (for audit)
node scripts/fetch-dependabot-alerts.mjs nasa-pds output.json --state dismissed
After the script completes, show the user the summary:
✅ Export complete!
Total alerts: <N>
By severity:
CRITICAL: <N>
HIGH: <N>
MEDIUM: <N>
LOW: <N>
Output: <path>
If 0 alerts: confirm whether Dependabot is enabled for the org. Org admins can enable it at: https://github.com/organizations/nasa-pds/settings/security_analysis
Export complete. Next steps:
1. Run dependabot-alerts-triaging to analyze these alerts and get triage recommendations
2. Review high/critical alerts manually at: https://github.com/orgs/nasa-pds/security/dependabot
The JSON output contains:
{
"exportMetadata": {
"exportDate": "2026-04-23T...",
"organization": "nasa-pds",
"stateFilter": "open",
"severityFilter": null,
"ecosystemFilter": null,
"totalRepositoriesScanned": 62,
"repositoriesSkipped": 14,
"totalAlerts": 127
},
"summary": {
"bySeverity": { "critical": 3, "high": 24, "medium": 61, "low": 39 },
"byEcosystem": { "npm": 45, "pip": 38, "maven": 30, "gradle": 14 },
"byRepository": [
{ "repository": "registry", "totalAlerts": 12, "bySeverity": { "high": 4, "medium": 8 } }
]
},
"alerts": [
{
"alertNumber": 42,
"alertUrl": "https://github.com/NASA-PDS/registry/security/dependabot/42",
"repository": "nasa-pds/registry",
"state": "open",
"dependency": {
"package": "lodash",
"ecosystem": "npm",
"manifestPath": "package.json",
"scope": "runtime"
},
"vulnerability": {
"vulnerableVersionRange": "< 4.17.21",
"firstPatchedVersion": "4.17.21"
},
"advisory": {
"ghsaId": "GHSA-35jh-r3h4-6jhm",
"cveId": "CVE-2021-23337",
"summary": "Command Injection in lodash",
"severity": "high",
"cvssScore": 7.2,
"cwes": [{ "cweId": "CWE-77", "name": "Improper Neutralization of Special Elements used in a Command" }],
"references": ["https://nvd.nist.gov/vuln/detail/CVE-2021-23337"],
"advisoryUrl": "https://github.com/advisories/GHSA-35jh-r3h4-6jhm"
},
"triage": {
"action": null,
"dismissedReason": null,
"comment": null,
"githubIssueUrl": null,
"reviewer": null,
"triageDate": null,
"confidence": null
}
}
]
}
"Resource not accessible by integration" (403)
security_events scopeexport GITHUB_TOKEN=$(gh auth token) (gh CLI token has the right scopes if you're an org member)"Dependabot alerts are not enabled for this repository" (404)
Very slow export
--severity critical,high to skip medium/low--repo <name> to scan a single repository0 alerts returned
npx claudepluginhub nasa-pds/pds-agent-skills --plugin creating-pds-issuesProvides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.