github_dependabot_list_alerts
Lists a repository's Dependabot alerts with dependency, severity, and first fix version; supports filters for state, severity, ecosystem, and package.
Instructions
List a repository's Dependabot alerts: which dependency, how severe, and the first version that fixes it. Several filters take a comma-separated list, so state='open,dismissed' is valid. Needs the security_events scope. This endpoint has no page parameter — raise per_page rather than paging.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| has | No | Only alerts with the given property. Currently only `patch` is supported, which restricts results to alerts that have a fix available. | |
| repo | Yes | The name of the repository without the `.git` extension. The name is not case sensitive. | |
| sort | No | The property by which to sort the results. `created` means when the alert was created. `updated` means when the alert's state last changed. `epss_percentage` sorts by estimated exploitation probability. GitHub uses `created` when this is absent. | |
| owner | Yes | The account owner of the repository. The name is not case sensitive. | |
| scope | No | The scope of the vulnerable dependency. `runtime` is what ships; `development` is what only the build sees. | |
| state | No | A comma-separated list of states. If specified, only alerts with these states will be returned. Can be: `auto_dismissed`, `dismissed`, `fixed`, `open`. | |
| package | No | A comma-separated list of package names to restrict the results to. | |
| perPage | No | The number of results to return (max 100). Defaults to 30. | |
| assignee | No | Filter alerts by assignees, as a comma-separated list of user handles. Use `*` for alerts with at least one assignee or `none` for alerts with no assignees. | |
| manifest | No | A comma-separated list of full manifest paths. | |
| severity | No | A comma-separated list of severities. Can be: `low`, `medium`, `high`, `critical`. | |
| direction | No | The direction to sort the results by. GitHub uses `desc` when this is absent. | |
| ecosystem | No | A comma-separated list of ecosystems. Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust`. | |
| relationship | No | A comma-separated list of relationships of the vulnerable dependency to your project. Can be: `unknown`, `direct`, `transitive`, `inconclusive`. | |
| classification | No | A comma-separated list of vulnerability classifications. Can be: `malware`, `general`. | |
| epssPercentage | No | Filter by EPSS percentage — the estimated probability of exploitation. An exact number, a comparator such as `>0.5`, or a range `0.1..0.4`, with values from 0.0 to 1.0. |