Interface AdvisoriesParams

Query parameters for listing global advisories.

interface AdvisoriesParams {
    cve_id?: string;
    cwe_id?: string;
    direction?: "asc" | "desc";
    ecosystem?: string;
    ghsa_id?: string;
    is_withdrawn?: boolean;
    page?: number;
    per_page?: number;
    severity?: "critical" | "high" | "medium" | "low" | "unknown";
    sort?: "updated" | "published";
}

Hierarchy (View Summary)

Properties

cve_id?: string

Filter by CVE ID

cwe_id?: string

Filter by CWE ID

direction?: "asc" | "desc"

Sort direction

ecosystem?: string

Filter by ecosystem (e.g., 'npm', 'pip')

ghsa_id?: string

Filter by GHSA ID

is_withdrawn?: boolean

Whether to include withdrawn advisories

page?: number

Page number to retrieve (1-based). Use nextPage from the previous response to paginate forward.

per_page?: number

Maximum number of results per page. GitHub default is 30, maximum is 100.

severity?: "critical" | "high" | "medium" | "low" | "unknown"

Filter by severity

sort?: "updated" | "published"

Sort field