List the security alerts of a project's repository
curl --request GET \ --url 'https://example.com/api/v1/projects/example/security-alerts?type=dependabot&state=open' \ --header 'Authorization: Bearer <token>'Lists the Dependabot, code scanning or secret scanning alerts GitHub raised for the repository linked to the project, one type per call, open by default. Read-only: Chelsea never dismisses or reopens an alert, and a secret scanning alert carries its kind and state, never the secret’s value. Reads one GitHub page: pass meta.nextCursor as cursor for the next, since GitHub gives no totals. A project the caller cannot reach answers 404; a project with no linked repository, or a repository with that feature off on GitHub, answers 409; 424 GITHUB_ACCESS_MISSING means the App or the organization has not accepted the read permission for that type. Requires github.view.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Project identifier (CUID2).
Project identifier (CUID2).
Query Parameters
Section titled “Query Parameters”dependabot, code_scanning or secret_scanning. One type per call, since GitHub pages each its own way.
dependabot, code_scanning or secret_scanning. One type per call, since GitHub pages each its own way.
Defaults to open. Dependabot: open, fixed, dismissed, auto_dismissed. Code scanning: open, fixed, dismissed, closed. Secret scanning: open, resolved.
Defaults to open. Dependabot: open, fixed, dismissed, auto_dismissed. Code scanning: open, fixed, dismissed, closed. Secret scanning: open, resolved.
meta.nextCursor of the previous page. Omit for the first page.
meta.nextCursor of the previous page. Omit for the first page.
Page size, 1 to 100. Defaults to 30.
Page size, 1 to 100. Defaults to 30.
Responses
Section titled “Responses”A page of alerts.
object
An alert GitHub raised for a project’s repository. A secret scanning alert never carries the secret’s value.
object
The manifest of a Dependabot alert or the file of a code scanning alert.
The alert’s number in its repository.
The package of a Dependabot alert.
The GHSA id of a Dependabot alert, the rule id of a code scanning alert or the secret type id.
How the alert was closed, when it was.
GitHub’s severity word (critical, high, medium, low, …); null when it gives none.
GitHub’s state word, such as open or fixed.
The advisory’s summary, the rule’s description, or the kind of secret for a secret scanning alert.
dependabot, code_scanning or secret_scanning.
The alert on GitHub.
Cursor pagination metadata for list responses.
object
True when nextCursor is set.
Page size that was applied.
Pass as cursor to fetch the next page. Null on the last page.
Example generated
{ "data": [ { "createdAt": "2026-04-15T12:00:00Z", "location": "example", "number": 1, "packageName": "example", "reference": "example", "resolution": "example", "severity": "example", "state": "example", "title": "example", "type": "example", "url": "example" } ], "meta": { "hasMore": true, "limit": 1, "nextCursor": "example" }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Conflict.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}GitHub failed (GITHUB_API_ERROR), or Chelsea’s GitHub App or the organization has not granted the access this needs (GITHUB_ACCESS_MISSING; the message names the step in Settings, Integrations, GitHub).
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC