/security-ghas:ghas-api-interactionfrom security-ghas
Use when interacting with GitHub Advanced Security APIs — lists, queries, dismisses, and resolves code scanning, secret scanning, and Dependabot alerts via the gh CLI
Ships in security-ghas. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Patterns for interacting with GitHub Advanced Security APIs using the gh CLI. Covers code scanning, secret scanning, and Dependabot alert lifecycle management.
# List all open code scanning alerts
gh api repos/{owner}/{repo}/code-scanning/alerts \
--jq '.[] | select(.state=="open") | {number, rule: .rule.id, severity: .rule.security_severity_level, path: .most_recent_instance.location.path, line: .most_recent_instance.location.start_line}'
# Get details for a specific alert
gh api repos/{owner}/{repo}/code-scanning/alerts/{alert_number}
# Dismiss an alert (with reason)
gh api repos/{owner}/{repo}/code-scanning/alerts/{alert_number} \
-X PATCH -f state=dismissed -f dismissed_reason=false_positive -f dismissed_comment="Verified safe: input is validated upstream"
# List alerts by severity
gh api repos/{owner}/{repo}/code-scanning/alerts?severity=critical\&state=open
# List open secret scanning alerts
gh api repos/{owner}/{repo}/secret-scanning/alerts \
--jq '.[] | select(.state=="open") | {number, secret_type, push_protection_bypassed}'
# Resolve an alert after remediation
gh api repos/{owner}/{repo}/secret-scanning/alerts/{alert_number} \
-X PATCH -f state=resolved -f resolution=revoked
# List open Dependabot alerts with severity
gh api repos/{owner}/{repo}/dependabot/alerts \
--jq '.[] | select(.state=="open") | {number, package: .security_vulnerability.package.name, severity: .security_vulnerability.severity, cve: .security_advisory.cve_id}'
# Dismiss after upgrading
gh api repos/{owner}/{repo}/dependabot/alerts/{alert_number} \
-X PATCH -f state=dismissed -f dismissed_reason=fix_started -f dismissed_comment="Upgraded to safe version"
# Get owner/repo from git remote
gh repo view --json nameWithOwner --jq '.nameWithOwner'
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
5 skills in this plugin
/ghas-codeql-remediationUse when fixing CodeQL SAST alerts — maps CodeQL rule IDs and CWE categories to specific code fix patterns for injection, deserialization, path traversal, weak crypto, and missing auth/ghas-dependabotUse when upgrading vulnerable dependencies flagged by GitHub Dependabot — prefers patch/minor upgrades, flags major bumps for approval, regenerates lock files, and validates via test run/ghas-push-protectionUse when resolving GitHub push protection blocks — identifies the blocked secret, removes it from commit history, replaces with a safe reference, and guides credential rotation/ghas-secret-scanningUse when remediating GitHub secret scanning alerts — removes leaked secrets, replaces with secure references, and provides per-secret-type rotation guidancenpx claudepluginhub gagandeepp/software-agent-teams --plugin security-ghas