Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gh-list-dependabot-alerts-for-owner-repos

English | 日本語

A GitHub CLI extension that lists Dependabot alerts (vulnerability alerts from Dependabot). It covers every repository owned by an organization or a user.

What it does

  • With --org: fetches alerts for every repository under the specified organization.
  • With --username: fetches alerts for every repository owned by the specified user.

Requirements

  • The gh command must be installed and authenticated (e.g. via gh auth login).
  • You must be authenticated as an account with permission to view Dependabot alerts.

Installation

gh extension install dev-hato/gh-list-dependabot-alerts-for-owner-repos

Usage

To 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.

Options

Option Description
--org Target organization name
--username Target username

Example output

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"
    }
  }
]

Development

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>

Note: about the wait times

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.

About

A GitHub CLI extension that lists Dependabot alerts (vulnerability alerts from Dependabot) for all repositories owned by an organization or a user.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages