| name | fetch-secret-scanning-alerts |
| description | List and normalize secret scanning alerts for a GitHub organization or repository using gh api. Use when the user asks for leaked secrets, secret scanning, or token exposure for an org or repo. |
| compatibility | Requires gh CLI and jq. Network access to github.com. |
| license | Apache-2.0 |
Fetch Secret Scanning Alerts
Fetch open (or filtered) secret scanning alerts and return a normalized JSON envelope on stdout.
Inputs
| Input | Required | Description |
|---|
ORG | Yes* | Organization login |
REPO | No | Full repo name owner/name |
STATE | No | Default open |
SUMMARY_ONLY | No | Default false. Set true to omit full alerts[] |
TOP_REPOS_N | No | Default 10 |
*If only REPO is given, org is derived from the owner segment of REPO.
Do not hardcode any organization name in commands.
Run
From this skill directory:
export ORG=your-org-login
export STATE=open
export SUMMARY_ONLY=true
./scripts/fetch.sh
References
Success criteria
- JSON envelope parses;
org matches supplied ORG (or repo owner when only REPO is set).
summary.total is correct when SUMMARY_ONLY=true.
Optional / Related
gh-auth-security
aggregate-security-report