English | 日本語
A GitHub CLI extension that lists Dependabot alerts (vulnerability alerts from Dependabot). It covers every repository owned by an organization or a user.
- With
--org: fetches alerts for every repository under the specified organization. - With
--username: fetches alerts for every repository owned by the specified user.
- The
ghcommand must be installed and authenticated (e.g. viagh auth login). - You must be authenticated as an account with permission to view Dependabot alerts.
gh extension install dev-hato/gh-list-dependabot-alerts-for-owner-reposTo fetch alerts for all repositories under an organization:
gh list-dependabot-alerts-for-owner-repos --org <organization>To fetch alerts for all repositories owned by a user:
gh list-dependabot-alerts-for-owner-repos --username <username>Specify either --org or --username. Running the command with both left empty results in an error.
| Option | Description |
|---|---|
--org |
Target organization name |
--username |
Target username |
The results are printed to standard output as a JSON array like the following:
[
{
"number": 3,
"state": "open",
"dependency": {
"package": {
"ecosystem": "npm",
"name": "lodash"
},
"manifest_path": "package-lock.json",
"scope": "runtime"
},
"security_advisory": {
"summary": "Prototype Pollution in lodash",
"severity": "high"
},
"html_url": "https://github.com/octocat/Hello-World/security/dependabot/3",
"created_at": "2026-05-19T21:32:23Z",
"repository": {
"full_name": "octocat/Hello-World"
}
}
]First, install your local code as an extension:
gh extension install .Then, each time you change the code and want to verify it, run the following command:
go build && gh list-dependabot-alerts-for-owner-repos <args>During execution, log lines like Call <path> are printed to standard error before each API call.
A short wait may be inserted beforehand to keep the request rate steady.
When using --username, alerts for each repository are fetched in parallel.
All requests still share the same rate limit.
The more target repositories there are, the longer the run takes to complete.