Skip to content

GitHub: List global security advisories

GitHub securityAdvisories.securityAdvisoriesListGlobalAdvisories: arguments, response, policy and SDK examples.

← Security advisories operations · Get started

Operation github.security_advisories_list_global_advisories

Provider route: GET /advisories. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/github with npm, or alter-sdk-github with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { GitHubIntegration } from "@alter-ai/github";
async function execute(input: Parameters<GitHubIntegration["securityAdvisories"]["securityAdvisoriesListGlobalAdvisories"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new GitHubIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.securityAdvisories.securityAdvisoriesListGlobalAdvisories(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_github import GitHubIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = GitHubIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.security_advisories.security_advisories_list_global_advisories(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
queryobjectOptionalAdditional keys: not allowed
query.ghsa_idstringOptional
query.typestringOptionalDefault: reviewed
One of: reviewed, malware, unreviewed
query.cve_idstringOptional
query.ecosystemstringOptionalThe package’s language or package management ecosystem.
One of: rubygems, npm, pip, maven, nuget, composer, go, rust, erlang, actions, pub, other, swift
query.severitystringOptionalOne of: unknown, low, medium, high, critical
query.cwesJSONOptional
query.cwes (oneOf 1)stringAlternative
query.cwes (oneOf 2)arrayAlternative
query.cwes (oneOf 2)[]stringEach item
query.is_withdrawnbooleanOptional
query.affectsJSONOptional
query.affects (oneOf 1)stringAlternative
query.affects (oneOf 2)arrayAlternativeMaximum items: 1000
query.affects (oneOf 2)[]stringEach item
query.publishedstringOptional
query.updatedstringOptional
query.modifiedstringOptional
query.epss_percentagestringOptional
query.epss_percentilestringOptional
query.beforestringOptional
query.afterstringOptional
query.directionstringOptionalDefault: desc
One of: asc, desc
query.per_pageintegerOptionalDefault: 30
Maximum: 100
Minimum: 1
query.sortstringOptionalDefault: published
One of: updated, published, epss_percentage, epss_percentile

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$arrayRoot
$[]ModelEach itemExpand Get a global security advisory — response body

Referenced models: Get a global security advisory — response body

2 more schemas are linked from the tables above, on the schema pages.

Get a global security advisory — response body
FieldTypePresenceDescription and constraints
$objectRootA GitHub Security Advisory.
Additional keys: not allowed
creditsJSONRequired within parent
credits (anyOf 1)arrayAlternativeThe users who contributed to the advisory.
Read only: true
credits (anyOf 1)[]objectEach item
credits (anyOf 1)[].typestringRequired within parentThe type of credit the user is receiving.
Known values: analyst, finder, reporter, coordinator, remediation_developer, remediation_reviewer, remediation_verifier, tool, sponsor, other
credits (anyOf 1)[].userModelRequired within parentExpand List users — response body — item
credits (anyOf 2)nullAlternative
cve_idJSONRequired within parent
cve_id (anyOf 1)stringAlternativeThe Common Vulnerabilities and Exposures (CVE) ID.
Read only: true
cve_id (anyOf 2)nullAlternative
cvss_severitiesModelOptionalExpand Get a global security advisory — response body — cvss severities
cwesJSONRequired within parent
cwes (anyOf 1)arrayAlternative
cwes (anyOf 1)[]objectEach item
cwes (anyOf 1)[].cwe_idstringRequired within parentThe Common Weakness Enumeration (CWE) identifier.
cwes (anyOf 1)[].namestringRequired within parentThe name of the CWE.
Read only: true
cwes (anyOf 2)nullAlternative
descriptionJSONRequired within parent
description (anyOf 1)stringAlternativeA detailed description of what the advisory entails.
Maximum length: 65535
description (anyOf 2)nullAlternative
epssModelOptionalExpand Get a global security advisory — response body — epss
ghsa_idstringRequired within parentThe GitHub Security Advisory ID.
Read only: true
github_reviewed_atJSONRequired within parent
github_reviewed_at (anyOf 1)stringAlternativeThe date and time of when the advisory was reviewed by GitHub, in ISO 8601 format.
Format: date-time
Read only: true
github_reviewed_at (anyOf 2)nullAlternative
html_urlstringRequired within parentThe URL for the advisory.
Format: uri
Read only: true
identifiersJSONRequired within parent
identifiers (anyOf 1)arrayAlternativeRead only: true
identifiers (anyOf 1)[]objectEach item
identifiers (anyOf 1)[].typestringRequired within parentThe type of identifier.
Known values: CVE, GHSA
identifiers (anyOf 1)[].valuestringRequired within parentThe identifier value.
identifiers (anyOf 2)nullAlternative
nvd_published_atJSONRequired within parent
nvd_published_at (anyOf 1)stringAlternativeThe date and time when the advisory was published in the National Vulnerability Database, in ISO 8601 format.
This field is only populated when the advisory is imported from the National Vulnerability Database.
Format: date-time
Read only: true
nvd_published_at (anyOf 2)nullAlternative
published_atstringRequired within parentThe date and time of when the advisory was published, in ISO 8601 format.
Format: date-time
Read only: true
referencesJSONRequired within parent
references (anyOf 1)arrayAlternative
references (anyOf 1)[]stringEach itemURLs with more information regarding the advisory.
references (anyOf 2)nullAlternative
repository_advisory_urlJSONRequired within parent
repository_advisory_url (anyOf 1)stringAlternativeThe API URL for the repository advisory.
Format: uri
Read only: true
repository_advisory_url (anyOf 2)nullAlternative
severitystringRequired within parentThe severity of the advisory.
Known values: critical, high, medium, low, unknown
source_code_locationJSONRequired within parent
source_code_location (anyOf 1)stringAlternativeThe URL of the advisory's source code.
Format: uri
source_code_location (anyOf 2)nullAlternative
summarystringRequired within parentA short summary of the advisory.
Maximum length: 1024
typestringRequired within parentThe type of advisory.
Known values: reviewed, unreviewed, malware
Read only: true
updated_atstringRequired within parentThe date and time of when the advisory was last updated, in ISO 8601 format.
Format: date-time
Read only: true
urlstringRequired within parentThe API URL for the advisory.
Read only: true
vulnerabilitiesJSONRequired within parent
vulnerabilities (anyOf 1)arrayAlternativeThe products and respective version ranges affected by the advisory.
vulnerabilities (anyOf 1)[]ModelEach itemExpand Get a global security advisory — response body — vulnerabilities array item
vulnerabilities (anyOf 2)nullAlternative
withdrawn_atJSONRequired within parent
withdrawn_at (anyOf 1)stringAlternativeThe date and time of when the advisory was withdrawn, in ISO 8601 format.
Format: date-time
Read only: true
withdrawn_at (anyOf 2)nullAlternative

Referenced models: Get a global security advisory — response body — cvss severities, Get a global security advisory — response body — epss, List users — response body — item, Get a global security advisory — response body — vulnerabilities array item

Get a global security advisory — response body — cvss severities
FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)objectAlternative
$ (anyOf 1).cvss_v3JSONOptional
$ (anyOf 1).cvss_v3 (anyOf 1)objectAlternative
$ (anyOf 1).cvss_v3 (anyOf 1).scoreJSONRequired within parent
$ (anyOf 1).cvss_v3 (anyOf 1).score (anyOf 1)JSONAlternative
$ (anyOf 1).cvss_v3 (anyOf 1).score (anyOf 1) (anyOf 1)numberAlternativeThe CVSS 3 score.
Maximum: 10
Minimum: 0
Read only: true
$ (anyOf 1).cvss_v3 (anyOf 1).score (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
$ (anyOf 1).cvss_v3 (anyOf 1).score (anyOf 2)nullAlternative
$ (anyOf 1).cvss_v3 (anyOf 1).vector_stringJSONRequired within parent
$ (anyOf 1).cvss_v3 (anyOf 1).vector_string (anyOf 1)stringAlternativeThe CVSS 3 vector string.
$ (anyOf 1).cvss_v3 (anyOf 1).vector_string (anyOf 2)nullAlternative
$ (anyOf 1).cvss_v3 (anyOf 2)nullAlternative
$ (anyOf 1).cvss_v4JSONOptional
$ (anyOf 1).cvss_v4 (anyOf 1)objectAlternative
$ (anyOf 1).cvss_v4 (anyOf 1).scoreJSONRequired within parent
$ (anyOf 1).cvss_v4 (anyOf 1).score (anyOf 1)JSONAlternative
$ (anyOf 1).cvss_v4 (anyOf 1).score (anyOf 1) (anyOf 1)numberAlternativeThe CVSS 4 score.
Maximum: 10
Minimum: 0
Read only: true
$ (anyOf 1).cvss_v4 (anyOf 1).score (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
$ (anyOf 1).cvss_v4 (anyOf 1).score (anyOf 2)nullAlternative
$ (anyOf 1).cvss_v4 (anyOf 1).vector_stringJSONRequired within parent
$ (anyOf 1).cvss_v4 (anyOf 1).vector_string (anyOf 1)stringAlternativeThe CVSS 4 vector string.
$ (anyOf 1).cvss_v4 (anyOf 1).vector_string (anyOf 2)nullAlternative
$ (anyOf 1).cvss_v4 (anyOf 2)nullAlternative
$ (anyOf 2)nullAlternative
Get a global security advisory — response body — epss
FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)objectAlternativeThe EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).
Read only: true
$ (anyOf 1).percentageJSONOptional
$ (anyOf 1).percentage (anyOf 1)numberAlternativeMaximum: 100
Minimum: 0
$ (anyOf 1).percentage (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
$ (anyOf 1).percentileJSONOptional
$ (anyOf 1).percentile (anyOf 1)numberAlternativeMaximum: 100
Minimum: 0
$ (anyOf 1).percentile (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
$ (anyOf 2)nullAlternative
Get a global security advisory — response body — vulnerabilities array item package ecosystem, name
FieldTypePresenceDescription and constraints
$objectRootThe name of the package affected by the vulnerability.
ecosystemstringRequired within parentThe package's language or package management ecosystem.
Known values: rubygems, npm, pip, maven, nuget, composer, go, rust, erlang, actions, pub, other, swift
nameJSONRequired within parent
name (anyOf 1)stringAlternativeThe unique package name within its ecosystem.
name (anyOf 2)nullAlternative

SDK function policy ID: github.security_advisories_list_global_advisories. Catalog operation: security-advisories/list-global-advisories. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Pinned headers: {"X-GitHub-Api-Version": "2026-03-10", "User-Agent": "Alter", "Accept": "application/vnd.github+json"}

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.