From e98d6223dc259ca53de579a24038be0ebd3c39ca Mon Sep 17 00:00:00 2001 From: Octokit Bot <33075676+octokitbot@users.noreply.github.com> Date: Mon, 22 Apr 2024 21:55:28 +0000 Subject: [PATCH] WIP octokit/openapi updated --- scripts/update-endpoints/generated/endpoints.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/update-endpoints/generated/endpoints.json b/scripts/update-endpoints/generated/endpoints.json index 02864e9..e4b8295 100644 --- a/scripts/update-endpoints/generated/endpoints.json +++ b/scripts/update-endpoints/generated/endpoints.json @@ -19561,7 +19561,7 @@ "responses": [ { "code": 200, - "schema": "{\"description\":\"A GitHub Security Advisory.\",\"type\":\"object\",\"properties\":{\"ghsa_id\":{\"type\":\"string\",\"description\":\"The GitHub Security Advisory ID.\",\"readOnly\":true},\"cve_id\":{\"type\":\"string\",\"description\":\"The Common Vulnerabilities and Exposures (CVE) ID.\",\"nullable\":true,\"readOnly\":true},\"url\":{\"type\":\"string\",\"description\":\"The API URL for the advisory.\",\"readOnly\":true},\"html_url\":{\"type\":\"string\",\"format\":\"uri\",\"description\":\"The URL for the advisory.\",\"readOnly\":true},\"repository_advisory_url\":{\"type\":\"string\",\"format\":\"uri\",\"description\":\"The API URL for the repository advisory.\",\"readOnly\":true,\"nullable\":true},\"summary\":{\"type\":\"string\",\"description\":\"A short summary of the advisory.\",\"maxLength\":1024},\"description\":{\"type\":\"string\",\"description\":\"A detailed description of what the advisory entails.\",\"maxLength\":65535,\"nullable\":true},\"type\":{\"type\":\"string\",\"description\":\"The type of advisory.\",\"readOnly\":true,\"enum\":[\"reviewed\",\"unreviewed\",\"malware\"]},\"severity\":{\"type\":\"string\",\"description\":\"The severity of the advisory.\",\"enum\":[\"critical\",\"high\",\"medium\",\"low\",\"unknown\"]},\"source_code_location\":{\"type\":\"string\",\"format\":\"uri\",\"description\":\"The URL of the advisory's source code.\",\"nullable\":true},\"identifiers\":{\"type\":\"array\",\"nullable\":true,\"readOnly\":true,\"items\":{\"type\":\"object\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"The type of identifier.\",\"enum\":[\"CVE\",\"GHSA\"]},\"value\":{\"type\":\"string\",\"description\":\"The identifier value.\"}},\"required\":[\"type\",\"value\"]}},\"references\":{\"type\":\"array\",\"nullable\":true,\"items\":{\"type\":\"string\",\"description\":\"URLs with more information regarding the advisory.\"}},\"published_at\":{\"type\":\"string\",\"format\":\"date-time\",\"description\":\"The date and time of when the advisory was published, in ISO 8601 format.\",\"readOnly\":true},\"updated_at\":{\"type\":\"string\",\"format\":\"date-time\",\"description\":\"The date and time of when the advisory was last updated, in ISO 8601 format.\",\"readOnly\":true},\"github_reviewed_at\":{\"type\":\"string\",\"format\":\"date-time\",\"description\":\"The date and time of when the advisory was reviewed by GitHub, in ISO 8601 format.\",\"readOnly\":true,\"nullable\":true},\"nvd_published_at\":{\"type\":\"string\",\"format\":\"date-time\",\"description\":\"The date and time when the advisory was published in the National Vulnerability Database, in ISO 8601 format.\\nThis field is only populated when the advisory is imported from the National Vulnerability Database.\",\"readOnly\":true,\"nullable\":true},\"withdrawn_at\":{\"type\":\"string\",\"format\":\"date-time\",\"description\":\"The date and time of when the advisory was withdrawn, in ISO 8601 format.\",\"readOnly\":true,\"nullable\":true},\"vulnerabilities\":{\"type\":\"array\",\"description\":\"The products and respective version ranges affected by the advisory.\",\"nullable\":true,\"items\":{\"type\":\"object\",\"properties\":{\"package\":{\"description\":\"The name of the package affected by the vulnerability.\",\"type\":\"object\",\"nullable\":true,\"properties\":{\"ecosystem\":{\"type\":\"string\",\"description\":\"The package's language or package management ecosystem.\",\"enum\":[\"rubygems\",\"npm\",\"pip\",\"maven\",\"nuget\",\"composer\",\"go\",\"rust\",\"erlang\",\"actions\",\"pub\",\"other\",\"swift\"]},\"name\":{\"type\":\"string\",\"description\":\"The unique package name within its ecosystem.\",\"nullable\":true}},\"required\":[\"ecosystem\",\"name\"]},\"vulnerable_version_range\":{\"type\":\"string\",\"description\":\"The range of the package versions affected by the vulnerability.\",\"nullable\":true},\"first_patched_version\":{\"type\":\"string\",\"description\":\"The package version that resolve the vulnerability.\",\"nullable\":true},\"vulnerable_functions\":{\"type\":\"array\",\"description\":\"The functions in the package that are affected by the vulnerability.\",\"nullable\":true,\"readOnly\":true,\"items\":{\"type\":\"string\"}}},\"required\":[\"package\",\"vulnerable_version_range\",\"first_patched_version\",\"vulnerable_functions\"]}},\"cvss\":{\"type\":\"object\",\"nullable\":true,\"properties\":{\"vector_string\":{\"type\":\"string\",\"description\":\"The CVSS vector.\",\"nullable\":true},\"score\":{\"type\":\"number\",\"description\":\"The CVSS score.\",\"minimum\":0,\"maximum\":10,\"nullable\":true,\"readOnly\":true}},\"required\":[\"vector_string\",\"score\"]},\"cwes\":{\"type\":\"array\",\"nullable\":true,\"items\":{\"type\":\"object\",\"properties\":{\"cwe_id\":{\"type\":\"string\",\"description\":\"The Common Weakness Enumeration (CWE) identifier.\"},\"name\":{\"type\":\"string\",\"description\":\"The name of the CWE.\",\"readOnly\":true}},\"required\":[\"cwe_id\",\"name\"]}},\"credits\":{\"type\":\"array\",\"description\":\"The users who contributed to the advisory.\",\"nullable\":true,\"readOnly\":true,\"items\":{\"type\":\"object\",\"properties\":{\"user\":{\"title\":\"Simple User\",\"description\":\"A GitHub user.\",\"type\":\"object\",\"properties\":{\"name\":{\"nullable\":true,\"type\":\"string\"},\"email\":{\"nullable\":true,\"type\":\"string\"},\"login\":{\"type\":\"string\",\"example\":\"octocat\"},\"id\":{\"type\":\"integer\",\"example\":1},\"node_id\":{\"type\":\"string\",\"example\":\"MDQ6VXNlcjE=\"},\"avatar_url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://github.com/images/error/octocat_happy.gif\"},\"gravatar_id\":{\"type\":\"string\",\"example\":\"41d064eb2195891e12d0413f63227ea7\",\"nullable\":true},\"url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://api.github.com/users/octocat\"},\"html_url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://github.com/octocat\"},\"followers_url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://api.github.com/users/octocat/followers\"},\"following_url\":{\"type\":\"string\",\"example\":\"https://api.github.com/users/octocat/following{/other_user}\"},\"gists_url\":{\"type\":\"string\",\"example\":\"https://api.github.com/users/octocat/gists{/gist_id}\"},\"starred_url\":{\"type\":\"string\",\"example\":\"https://api.github.com/users/octocat/starred{/owner}{/repo}\"},\"subscriptions_url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://api.github.com/users/octocat/subscriptions\"},\"organizations_url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://api.github.com/users/octocat/orgs\"},\"repos_url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://api.github.com/users/octocat/repos\"},\"events_url\":{\"type\":\"string\",\"example\":\"https://api.github.com/users/octocat/events{/privacy}\"},\"received_events_url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://api.github.com/users/octocat/received_events\"},\"type\":{\"type\":\"string\",\"example\":\"User\"},\"site_admin\":{\"type\":\"boolean\"},\"starred_at\":{\"type\":\"string\",\"example\":\"\\\"2020-07-09T00:17:55Z\\\"\"}},\"required\":[\"avatar_url\",\"events_url\",\"followers_url\",\"following_url\",\"gists_url\",\"gravatar_id\",\"html_url\",\"id\",\"node_id\",\"login\",\"organizations_url\",\"received_events_url\",\"repos_url\",\"site_admin\",\"starred_url\",\"subscriptions_url\",\"type\",\"url\"]},\"type\":{\"type\":\"string\",\"description\":\"The type of credit the user is receiving.\",\"enum\":[\"analyst\",\"finder\",\"reporter\",\"coordinator\",\"remediation_developer\",\"remediation_reviewer\",\"remediation_verifier\",\"tool\",\"sponsor\",\"other\"]}},\"required\":[\"user\",\"type\"]}}},\"required\":[\"ghsa_id\",\"cve_id\",\"url\",\"html_url\",\"repository_advisory_url\",\"summary\",\"description\",\"type\",\"severity\",\"source_code_location\",\"identifiers\",\"references\",\"published_at\",\"updated_at\",\"github_reviewed_at\",\"nvd_published_at\",\"withdrawn_at\",\"vulnerabilities\",\"cvss\",\"cwes\",\"credits\"],\"additionalProperties\":false}" + "schema": "{\"description\":\"A GitHub Security Advisory.\",\"type\":\"object\",\"properties\":{\"ghsa_id\":{\"type\":\"string\",\"description\":\"The GitHub Security Advisory ID.\",\"readOnly\":true},\"cve_id\":{\"type\":\"string\",\"description\":\"The Common Vulnerabilities and Exposures (CVE) ID.\",\"nullable\":true,\"readOnly\":true},\"url\":{\"type\":\"string\",\"description\":\"The API URL for the advisory.\",\"readOnly\":true},\"html_url\":{\"type\":\"string\",\"format\":\"uri\",\"description\":\"The URL for the advisory.\",\"readOnly\":true},\"repository_advisory_url\":{\"type\":\"string\",\"format\":\"uri\",\"description\":\"The API URL for the repository advisory.\",\"readOnly\":true,\"nullable\":true},\"summary\":{\"type\":\"string\",\"description\":\"A short summary of the advisory.\",\"maxLength\":1024},\"description\":{\"type\":\"string\",\"description\":\"A detailed description of what the advisory entails.\",\"maxLength\":65535,\"nullable\":true},\"type\":{\"type\":\"string\",\"description\":\"The type of advisory.\",\"readOnly\":true,\"enum\":[\"reviewed\",\"unreviewed\",\"malware\"]},\"severity\":{\"type\":\"string\",\"description\":\"The severity of the advisory.\",\"enum\":[\"critical\",\"high\",\"medium\",\"low\",\"unknown\"]},\"source_code_location\":{\"type\":\"string\",\"format\":\"uri\",\"description\":\"The URL of the advisory's source code.\",\"nullable\":true},\"identifiers\":{\"type\":\"array\",\"nullable\":true,\"readOnly\":true,\"items\":{\"type\":\"object\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"The type of identifier.\",\"enum\":[\"CVE\",\"GHSA\"]},\"value\":{\"type\":\"string\",\"description\":\"The identifier value.\"}},\"required\":[\"type\",\"value\"]}},\"references\":{\"type\":\"array\",\"nullable\":true,\"items\":{\"type\":\"string\",\"description\":\"URLs with more information regarding the advisory.\"}},\"published_at\":{\"type\":\"string\",\"format\":\"date-time\",\"description\":\"The date and time of when the advisory was published, in ISO 8601 format.\",\"readOnly\":true},\"updated_at\":{\"type\":\"string\",\"format\":\"date-time\",\"description\":\"The date and time of when the advisory was last updated, in ISO 8601 format.\",\"readOnly\":true},\"github_reviewed_at\":{\"type\":\"string\",\"format\":\"date-time\",\"description\":\"The date and time of when the advisory was reviewed by GitHub, in ISO 8601 format.\",\"readOnly\":true,\"nullable\":true},\"nvd_published_at\":{\"type\":\"string\",\"format\":\"date-time\",\"description\":\"The date and time when the advisory was published in the National Vulnerability Database, in ISO 8601 format.\\nThis field is only populated when the advisory is imported from the National Vulnerability Database.\",\"readOnly\":true,\"nullable\":true},\"withdrawn_at\":{\"type\":\"string\",\"format\":\"date-time\",\"description\":\"The date and time of when the advisory was withdrawn, in ISO 8601 format.\",\"readOnly\":true,\"nullable\":true},\"vulnerabilities\":{\"type\":\"array\",\"description\":\"The products and respective version ranges affected by the advisory.\",\"nullable\":true,\"items\":{\"description\":\"A vulnerability describing the product and its affected versions within a GitHub Security Advisory.\",\"type\":\"object\",\"properties\":{\"package\":{\"description\":\"The name of the package affected by the vulnerability.\",\"type\":\"object\",\"nullable\":true,\"properties\":{\"ecosystem\":{\"type\":\"string\",\"description\":\"The package's language or package management ecosystem.\",\"enum\":[\"rubygems\",\"npm\",\"pip\",\"maven\",\"nuget\",\"composer\",\"go\",\"rust\",\"erlang\",\"actions\",\"pub\",\"other\",\"swift\"]},\"name\":{\"type\":\"string\",\"description\":\"The unique package name within its ecosystem.\",\"nullable\":true}},\"required\":[\"ecosystem\",\"name\"]},\"vulnerable_version_range\":{\"type\":\"string\",\"description\":\"The range of the package versions affected by the vulnerability.\",\"nullable\":true},\"first_patched_version\":{\"type\":\"string\",\"description\":\"The package version that resolves the vulnerability.\",\"nullable\":true},\"vulnerable_functions\":{\"type\":\"array\",\"description\":\"The functions in the package that are affected by the vulnerability.\",\"nullable\":true,\"readOnly\":true,\"items\":{\"type\":\"string\"}}},\"required\":[\"package\",\"vulnerable_version_range\",\"first_patched_version\",\"vulnerable_functions\"]}},\"cvss\":{\"type\":\"object\",\"nullable\":true,\"properties\":{\"vector_string\":{\"type\":\"string\",\"description\":\"The CVSS vector.\",\"nullable\":true},\"score\":{\"type\":\"number\",\"description\":\"The CVSS score.\",\"minimum\":0,\"maximum\":10,\"nullable\":true,\"readOnly\":true}},\"required\":[\"vector_string\",\"score\"]},\"cwes\":{\"type\":\"array\",\"nullable\":true,\"items\":{\"type\":\"object\",\"properties\":{\"cwe_id\":{\"type\":\"string\",\"description\":\"The Common Weakness Enumeration (CWE) identifier.\"},\"name\":{\"type\":\"string\",\"description\":\"The name of the CWE.\",\"readOnly\":true}},\"required\":[\"cwe_id\",\"name\"]}},\"credits\":{\"type\":\"array\",\"description\":\"The users who contributed to the advisory.\",\"nullable\":true,\"readOnly\":true,\"items\":{\"type\":\"object\",\"properties\":{\"user\":{\"title\":\"Simple User\",\"description\":\"A GitHub user.\",\"type\":\"object\",\"properties\":{\"name\":{\"nullable\":true,\"type\":\"string\"},\"email\":{\"nullable\":true,\"type\":\"string\"},\"login\":{\"type\":\"string\",\"example\":\"octocat\"},\"id\":{\"type\":\"integer\",\"example\":1},\"node_id\":{\"type\":\"string\",\"example\":\"MDQ6VXNlcjE=\"},\"avatar_url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://github.com/images/error/octocat_happy.gif\"},\"gravatar_id\":{\"type\":\"string\",\"example\":\"41d064eb2195891e12d0413f63227ea7\",\"nullable\":true},\"url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://api.github.com/users/octocat\"},\"html_url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://github.com/octocat\"},\"followers_url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://api.github.com/users/octocat/followers\"},\"following_url\":{\"type\":\"string\",\"example\":\"https://api.github.com/users/octocat/following{/other_user}\"},\"gists_url\":{\"type\":\"string\",\"example\":\"https://api.github.com/users/octocat/gists{/gist_id}\"},\"starred_url\":{\"type\":\"string\",\"example\":\"https://api.github.com/users/octocat/starred{/owner}{/repo}\"},\"subscriptions_url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://api.github.com/users/octocat/subscriptions\"},\"organizations_url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://api.github.com/users/octocat/orgs\"},\"repos_url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://api.github.com/users/octocat/repos\"},\"events_url\":{\"type\":\"string\",\"example\":\"https://api.github.com/users/octocat/events{/privacy}\"},\"received_events_url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://api.github.com/users/octocat/received_events\"},\"type\":{\"type\":\"string\",\"example\":\"User\"},\"site_admin\":{\"type\":\"boolean\"},\"starred_at\":{\"type\":\"string\",\"example\":\"\\\"2020-07-09T00:17:55Z\\\"\"}},\"required\":[\"avatar_url\",\"events_url\",\"followers_url\",\"following_url\",\"gists_url\",\"gravatar_id\",\"html_url\",\"id\",\"node_id\",\"login\",\"organizations_url\",\"received_events_url\",\"repos_url\",\"site_admin\",\"starred_url\",\"subscriptions_url\",\"type\",\"url\"]},\"type\":{\"type\":\"string\",\"description\":\"The type of credit the user is receiving.\",\"enum\":[\"analyst\",\"finder\",\"reporter\",\"coordinator\",\"remediation_developer\",\"remediation_reviewer\",\"remediation_verifier\",\"tool\",\"sponsor\",\"other\"]}},\"required\":[\"user\",\"type\"]}}},\"required\":[\"ghsa_id\",\"cve_id\",\"url\",\"html_url\",\"repository_advisory_url\",\"summary\",\"description\",\"type\",\"severity\",\"source_code_location\",\"identifiers\",\"references\",\"published_at\",\"updated_at\",\"github_reviewed_at\",\"nvd_published_at\",\"withdrawn_at\",\"vulnerabilities\",\"cvss\",\"cwes\",\"credits\"],\"additionalProperties\":false}" }, { "code": 404, @@ -19605,7 +19605,7 @@ "responses": [ { "code": 200, - "schema": "{\"type\":\"array\",\"items\":{\"description\":\"A GitHub Security Advisory.\",\"type\":\"object\",\"properties\":{\"ghsa_id\":{\"type\":\"string\",\"description\":\"The GitHub Security Advisory ID.\",\"readOnly\":true},\"cve_id\":{\"type\":\"string\",\"description\":\"The Common Vulnerabilities and Exposures (CVE) ID.\",\"nullable\":true,\"readOnly\":true},\"url\":{\"type\":\"string\",\"description\":\"The API URL for the advisory.\",\"readOnly\":true},\"html_url\":{\"type\":\"string\",\"format\":\"uri\",\"description\":\"The URL for the advisory.\",\"readOnly\":true},\"repository_advisory_url\":{\"type\":\"string\",\"format\":\"uri\",\"description\":\"The API URL for the repository advisory.\",\"readOnly\":true,\"nullable\":true},\"summary\":{\"type\":\"string\",\"description\":\"A short summary of the advisory.\",\"maxLength\":1024},\"description\":{\"type\":\"string\",\"description\":\"A detailed description of what the advisory entails.\",\"maxLength\":65535,\"nullable\":true},\"type\":{\"type\":\"string\",\"description\":\"The type of advisory.\",\"readOnly\":true,\"enum\":[\"reviewed\",\"unreviewed\",\"malware\"]},\"severity\":{\"type\":\"string\",\"description\":\"The severity of the advisory.\",\"enum\":[\"critical\",\"high\",\"medium\",\"low\",\"unknown\"]},\"source_code_location\":{\"type\":\"string\",\"format\":\"uri\",\"description\":\"The URL of the advisory's source code.\",\"nullable\":true},\"identifiers\":{\"type\":\"array\",\"nullable\":true,\"readOnly\":true,\"items\":{\"type\":\"object\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"The type of identifier.\",\"enum\":[\"CVE\",\"GHSA\"]},\"value\":{\"type\":\"string\",\"description\":\"The identifier value.\"}},\"required\":[\"type\",\"value\"]}},\"references\":{\"type\":\"array\",\"nullable\":true,\"items\":{\"type\":\"string\",\"description\":\"URLs with more information regarding the advisory.\"}},\"published_at\":{\"type\":\"string\",\"format\":\"date-time\",\"description\":\"The date and time of when the advisory was published, in ISO 8601 format.\",\"readOnly\":true},\"updated_at\":{\"type\":\"string\",\"format\":\"date-time\",\"description\":\"The date and time of when the advisory was last updated, in ISO 8601 format.\",\"readOnly\":true},\"github_reviewed_at\":{\"type\":\"string\",\"format\":\"date-time\",\"description\":\"The date and time of when the advisory was reviewed by GitHub, in ISO 8601 format.\",\"readOnly\":true,\"nullable\":true},\"nvd_published_at\":{\"type\":\"string\",\"format\":\"date-time\",\"description\":\"The date and time when the advisory was published in the National Vulnerability Database, in ISO 8601 format.\\nThis field is only populated when the advisory is imported from the National Vulnerability Database.\",\"readOnly\":true,\"nullable\":true},\"withdrawn_at\":{\"type\":\"string\",\"format\":\"date-time\",\"description\":\"The date and time of when the advisory was withdrawn, in ISO 8601 format.\",\"readOnly\":true,\"nullable\":true},\"vulnerabilities\":{\"type\":\"array\",\"description\":\"The products and respective version ranges affected by the advisory.\",\"nullable\":true,\"items\":{\"type\":\"object\",\"properties\":{\"package\":{\"description\":\"The name of the package affected by the vulnerability.\",\"type\":\"object\",\"nullable\":true,\"properties\":{\"ecosystem\":{\"type\":\"string\",\"description\":\"The package's language or package management ecosystem.\",\"enum\":[\"rubygems\",\"npm\",\"pip\",\"maven\",\"nuget\",\"composer\",\"go\",\"rust\",\"erlang\",\"actions\",\"pub\",\"other\",\"swift\"]},\"name\":{\"type\":\"string\",\"description\":\"The unique package name within its ecosystem.\",\"nullable\":true}},\"required\":[\"ecosystem\",\"name\"]},\"vulnerable_version_range\":{\"type\":\"string\",\"description\":\"The range of the package versions affected by the vulnerability.\",\"nullable\":true},\"first_patched_version\":{\"type\":\"string\",\"description\":\"The package version that resolve the vulnerability.\",\"nullable\":true},\"vulnerable_functions\":{\"type\":\"array\",\"description\":\"The functions in the package that are affected by the vulnerability.\",\"nullable\":true,\"readOnly\":true,\"items\":{\"type\":\"string\"}}},\"required\":[\"package\",\"vulnerable_version_range\",\"first_patched_version\",\"vulnerable_functions\"]}},\"cvss\":{\"type\":\"object\",\"nullable\":true,\"properties\":{\"vector_string\":{\"type\":\"string\",\"description\":\"The CVSS vector.\",\"nullable\":true},\"score\":{\"type\":\"number\",\"description\":\"The CVSS score.\",\"minimum\":0,\"maximum\":10,\"nullable\":true,\"readOnly\":true}},\"required\":[\"vector_string\",\"score\"]},\"cwes\":{\"type\":\"array\",\"nullable\":true,\"items\":{\"type\":\"object\",\"properties\":{\"cwe_id\":{\"type\":\"string\",\"description\":\"The Common Weakness Enumeration (CWE) identifier.\"},\"name\":{\"type\":\"string\",\"description\":\"The name of the CWE.\",\"readOnly\":true}},\"required\":[\"cwe_id\",\"name\"]}},\"credits\":{\"type\":\"array\",\"description\":\"The users who contributed to the advisory.\",\"nullable\":true,\"readOnly\":true,\"items\":{\"type\":\"object\",\"properties\":{\"user\":{\"title\":\"Simple User\",\"description\":\"A GitHub user.\",\"type\":\"object\",\"properties\":{\"name\":{\"nullable\":true,\"type\":\"string\"},\"email\":{\"nullable\":true,\"type\":\"string\"},\"login\":{\"type\":\"string\",\"example\":\"octocat\"},\"id\":{\"type\":\"integer\",\"example\":1},\"node_id\":{\"type\":\"string\",\"example\":\"MDQ6VXNlcjE=\"},\"avatar_url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://github.com/images/error/octocat_happy.gif\"},\"gravatar_id\":{\"type\":\"string\",\"example\":\"41d064eb2195891e12d0413f63227ea7\",\"nullable\":true},\"url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://api.github.com/users/octocat\"},\"html_url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://github.com/octocat\"},\"followers_url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://api.github.com/users/octocat/followers\"},\"following_url\":{\"type\":\"string\",\"example\":\"https://api.github.com/users/octocat/following{/other_user}\"},\"gists_url\":{\"type\":\"string\",\"example\":\"https://api.github.com/users/octocat/gists{/gist_id}\"},\"starred_url\":{\"type\":\"string\",\"example\":\"https://api.github.com/users/octocat/starred{/owner}{/repo}\"},\"subscriptions_url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://api.github.com/users/octocat/subscriptions\"},\"organizations_url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://api.github.com/users/octocat/orgs\"},\"repos_url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://api.github.com/users/octocat/repos\"},\"events_url\":{\"type\":\"string\",\"example\":\"https://api.github.com/users/octocat/events{/privacy}\"},\"received_events_url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://api.github.com/users/octocat/received_events\"},\"type\":{\"type\":\"string\",\"example\":\"User\"},\"site_admin\":{\"type\":\"boolean\"},\"starred_at\":{\"type\":\"string\",\"example\":\"\\\"2020-07-09T00:17:55Z\\\"\"}},\"required\":[\"avatar_url\",\"events_url\",\"followers_url\",\"following_url\",\"gists_url\",\"gravatar_id\",\"html_url\",\"id\",\"node_id\",\"login\",\"organizations_url\",\"received_events_url\",\"repos_url\",\"site_admin\",\"starred_url\",\"subscriptions_url\",\"type\",\"url\"]},\"type\":{\"type\":\"string\",\"description\":\"The type of credit the user is receiving.\",\"enum\":[\"analyst\",\"finder\",\"reporter\",\"coordinator\",\"remediation_developer\",\"remediation_reviewer\",\"remediation_verifier\",\"tool\",\"sponsor\",\"other\"]}},\"required\":[\"user\",\"type\"]}}},\"required\":[\"ghsa_id\",\"cve_id\",\"url\",\"html_url\",\"repository_advisory_url\",\"summary\",\"description\",\"type\",\"severity\",\"source_code_location\",\"identifiers\",\"references\",\"published_at\",\"updated_at\",\"github_reviewed_at\",\"nvd_published_at\",\"withdrawn_at\",\"vulnerabilities\",\"cvss\",\"cwes\",\"credits\"],\"additionalProperties\":false}}" + "schema": "{\"type\":\"array\",\"items\":{\"description\":\"A GitHub Security Advisory.\",\"type\":\"object\",\"properties\":{\"ghsa_id\":{\"type\":\"string\",\"description\":\"The GitHub Security Advisory ID.\",\"readOnly\":true},\"cve_id\":{\"type\":\"string\",\"description\":\"The Common Vulnerabilities and Exposures (CVE) ID.\",\"nullable\":true,\"readOnly\":true},\"url\":{\"type\":\"string\",\"description\":\"The API URL for the advisory.\",\"readOnly\":true},\"html_url\":{\"type\":\"string\",\"format\":\"uri\",\"description\":\"The URL for the advisory.\",\"readOnly\":true},\"repository_advisory_url\":{\"type\":\"string\",\"format\":\"uri\",\"description\":\"The API URL for the repository advisory.\",\"readOnly\":true,\"nullable\":true},\"summary\":{\"type\":\"string\",\"description\":\"A short summary of the advisory.\",\"maxLength\":1024},\"description\":{\"type\":\"string\",\"description\":\"A detailed description of what the advisory entails.\",\"maxLength\":65535,\"nullable\":true},\"type\":{\"type\":\"string\",\"description\":\"The type of advisory.\",\"readOnly\":true,\"enum\":[\"reviewed\",\"unreviewed\",\"malware\"]},\"severity\":{\"type\":\"string\",\"description\":\"The severity of the advisory.\",\"enum\":[\"critical\",\"high\",\"medium\",\"low\",\"unknown\"]},\"source_code_location\":{\"type\":\"string\",\"format\":\"uri\",\"description\":\"The URL of the advisory's source code.\",\"nullable\":true},\"identifiers\":{\"type\":\"array\",\"nullable\":true,\"readOnly\":true,\"items\":{\"type\":\"object\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"The type of identifier.\",\"enum\":[\"CVE\",\"GHSA\"]},\"value\":{\"type\":\"string\",\"description\":\"The identifier value.\"}},\"required\":[\"type\",\"value\"]}},\"references\":{\"type\":\"array\",\"nullable\":true,\"items\":{\"type\":\"string\",\"description\":\"URLs with more information regarding the advisory.\"}},\"published_at\":{\"type\":\"string\",\"format\":\"date-time\",\"description\":\"The date and time of when the advisory was published, in ISO 8601 format.\",\"readOnly\":true},\"updated_at\":{\"type\":\"string\",\"format\":\"date-time\",\"description\":\"The date and time of when the advisory was last updated, in ISO 8601 format.\",\"readOnly\":true},\"github_reviewed_at\":{\"type\":\"string\",\"format\":\"date-time\",\"description\":\"The date and time of when the advisory was reviewed by GitHub, in ISO 8601 format.\",\"readOnly\":true,\"nullable\":true},\"nvd_published_at\":{\"type\":\"string\",\"format\":\"date-time\",\"description\":\"The date and time when the advisory was published in the National Vulnerability Database, in ISO 8601 format.\\nThis field is only populated when the advisory is imported from the National Vulnerability Database.\",\"readOnly\":true,\"nullable\":true},\"withdrawn_at\":{\"type\":\"string\",\"format\":\"date-time\",\"description\":\"The date and time of when the advisory was withdrawn, in ISO 8601 format.\",\"readOnly\":true,\"nullable\":true},\"vulnerabilities\":{\"type\":\"array\",\"description\":\"The products and respective version ranges affected by the advisory.\",\"nullable\":true,\"items\":{\"description\":\"A vulnerability describing the product and its affected versions within a GitHub Security Advisory.\",\"type\":\"object\",\"properties\":{\"package\":{\"description\":\"The name of the package affected by the vulnerability.\",\"type\":\"object\",\"nullable\":true,\"properties\":{\"ecosystem\":{\"type\":\"string\",\"description\":\"The package's language or package management ecosystem.\",\"enum\":[\"rubygems\",\"npm\",\"pip\",\"maven\",\"nuget\",\"composer\",\"go\",\"rust\",\"erlang\",\"actions\",\"pub\",\"other\",\"swift\"]},\"name\":{\"type\":\"string\",\"description\":\"The unique package name within its ecosystem.\",\"nullable\":true}},\"required\":[\"ecosystem\",\"name\"]},\"vulnerable_version_range\":{\"type\":\"string\",\"description\":\"The range of the package versions affected by the vulnerability.\",\"nullable\":true},\"first_patched_version\":{\"type\":\"string\",\"description\":\"The package version that resolves the vulnerability.\",\"nullable\":true},\"vulnerable_functions\":{\"type\":\"array\",\"description\":\"The functions in the package that are affected by the vulnerability.\",\"nullable\":true,\"readOnly\":true,\"items\":{\"type\":\"string\"}}},\"required\":[\"package\",\"vulnerable_version_range\",\"first_patched_version\",\"vulnerable_functions\"]}},\"cvss\":{\"type\":\"object\",\"nullable\":true,\"properties\":{\"vector_string\":{\"type\":\"string\",\"description\":\"The CVSS vector.\",\"nullable\":true},\"score\":{\"type\":\"number\",\"description\":\"The CVSS score.\",\"minimum\":0,\"maximum\":10,\"nullable\":true,\"readOnly\":true}},\"required\":[\"vector_string\",\"score\"]},\"cwes\":{\"type\":\"array\",\"nullable\":true,\"items\":{\"type\":\"object\",\"properties\":{\"cwe_id\":{\"type\":\"string\",\"description\":\"The Common Weakness Enumeration (CWE) identifier.\"},\"name\":{\"type\":\"string\",\"description\":\"The name of the CWE.\",\"readOnly\":true}},\"required\":[\"cwe_id\",\"name\"]}},\"credits\":{\"type\":\"array\",\"description\":\"The users who contributed to the advisory.\",\"nullable\":true,\"readOnly\":true,\"items\":{\"type\":\"object\",\"properties\":{\"user\":{\"title\":\"Simple User\",\"description\":\"A GitHub user.\",\"type\":\"object\",\"properties\":{\"name\":{\"nullable\":true,\"type\":\"string\"},\"email\":{\"nullable\":true,\"type\":\"string\"},\"login\":{\"type\":\"string\",\"example\":\"octocat\"},\"id\":{\"type\":\"integer\",\"example\":1},\"node_id\":{\"type\":\"string\",\"example\":\"MDQ6VXNlcjE=\"},\"avatar_url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://github.com/images/error/octocat_happy.gif\"},\"gravatar_id\":{\"type\":\"string\",\"example\":\"41d064eb2195891e12d0413f63227ea7\",\"nullable\":true},\"url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://api.github.com/users/octocat\"},\"html_url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://github.com/octocat\"},\"followers_url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://api.github.com/users/octocat/followers\"},\"following_url\":{\"type\":\"string\",\"example\":\"https://api.github.com/users/octocat/following{/other_user}\"},\"gists_url\":{\"type\":\"string\",\"example\":\"https://api.github.com/users/octocat/gists{/gist_id}\"},\"starred_url\":{\"type\":\"string\",\"example\":\"https://api.github.com/users/octocat/starred{/owner}{/repo}\"},\"subscriptions_url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://api.github.com/users/octocat/subscriptions\"},\"organizations_url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://api.github.com/users/octocat/orgs\"},\"repos_url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://api.github.com/users/octocat/repos\"},\"events_url\":{\"type\":\"string\",\"example\":\"https://api.github.com/users/octocat/events{/privacy}\"},\"received_events_url\":{\"type\":\"string\",\"format\":\"uri\",\"example\":\"https://api.github.com/users/octocat/received_events\"},\"type\":{\"type\":\"string\",\"example\":\"User\"},\"site_admin\":{\"type\":\"boolean\"},\"starred_at\":{\"type\":\"string\",\"example\":\"\\\"2020-07-09T00:17:55Z\\\"\"}},\"required\":[\"avatar_url\",\"events_url\",\"followers_url\",\"following_url\",\"gists_url\",\"gravatar_id\",\"html_url\",\"id\",\"node_id\",\"login\",\"organizations_url\",\"received_events_url\",\"repos_url\",\"site_admin\",\"starred_url\",\"subscriptions_url\",\"type\",\"url\"]},\"type\":{\"type\":\"string\",\"description\":\"The type of credit the user is receiving.\",\"enum\":[\"analyst\",\"finder\",\"reporter\",\"coordinator\",\"remediation_developer\",\"remediation_reviewer\",\"remediation_verifier\",\"tool\",\"sponsor\",\"other\"]}},\"required\":[\"user\",\"type\"]}}},\"required\":[\"ghsa_id\",\"cve_id\",\"url\",\"html_url\",\"repository_advisory_url\",\"summary\",\"description\",\"type\",\"severity\",\"source_code_location\",\"identifiers\",\"references\",\"published_at\",\"updated_at\",\"github_reviewed_at\",\"nvd_published_at\",\"withdrawn_at\",\"vulnerabilities\",\"cvss\",\"cwes\",\"credits\"],\"additionalProperties\":false}}" }, { "code": 422,