github_secret_scanning_list_alerts
List secret scanning alerts for a repository to triage exposed credentials by pattern, provider, and validity, without returning the secret value.
Instructions
List secret scanning alerts: which pattern matched, which provider, and whether the credential is still valid. The detected secret itself is never returned by this tool — it is dropped from the response whatever the request asked for, because triage does not need it. Requires administrator access.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | The page number of the results to fetch. Defaults to 1. | |
| repo | Yes | The name of the repository without the `.git` extension. The name is not case sensitive. | |
| sort | No | The property to sort the results by. `created` means when the alert was created; `updated` means when it was updated or resolved. GitHub uses `created` when this is absent. | |
| owner | Yes | The account owner of the repository. The name is not case sensitive. | |
| state | No | Set to `open` or `resolved` to only list alerts in a specific state. | |
| perPage | No | The number of results per page (max 100). Defaults to 30. | |
| assignee | No | Filters alerts by assignee. Use `*` for all assigned alerts, `none` for unassigned, or a GitHub username. | |
| validity | No | A comma-separated list of validities — whether GitHub could confirm the secret still works. Can be: `active`, `inactive`, `unknown`. | |
| direction | No | The direction to sort the results by. GitHub uses `desc` when this is absent. | |
| hideSecret | No | Leave the detected secret value out of the response. Set this when the result is going into a model's context: triage needs the type, the location and the state, not the credential. | |
| resolution | No | A comma-separated list of resolutions. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`. | |
| secretType | No | A comma-separated list of secret types to return. All default secret patterns are returned when absent. Cannot be combined with `exclude_secret_types`. | |
| isMultiRepo | No | Only alerts for secrets detected in more than one repository. | |
| isPubliclyLeaked | No | Only alerts for secrets that were leaked publicly. | |
| excludeSecretTypes | No | A comma-separated list of secret types to exclude from the results. Cannot be combined with `secret_type`. |