Use the REST API to view and manage repository security advisories.
Note
Most endpoints use Authorization: Bearer <YOUR-TOKEN> and Accept: application/vnd.github+json headers, plus X-GitHub-Api-Version: 2026-03-10. Curl examples below omit these standard headers for brevity.
GET /orgs/{org}/security-advisories
Lists repository security advisories for an organization.
The authenticated user must be an owner or security manager for the organization to use this endpoint.
OAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:write scope to use this endpoint.
accept (string)application/vnd.github+json is recommended.org (string) (required)
The organization name. The name is not case sensitive.
direction (string)
The direction to sort the results by.
Default: desc
Can be one of: asc, desc
sort (string)
The property to sort the results by.
Default: created
Can be one of: created, updated, published
before (string)
A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API."
after (string)
A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API."
per_page (integer)
The number of advisories to return per page. For more information, see "Using pagination in the REST API."
Default: 30
state (string)
Filter by the state of the repository advisories. Only advisories of this state will be returned.
Can be one of: triage, draft, published, closed
200 - OK
400 - Bad Request
404 - Resource not found
Request:
curl -L \
-X GET \
https://api.github.com/orgs/ORG/security-advisories
Response schema (Status: 200):
Array of objects:
ghsa_id: required, string, read-onlycve_id: required, string or nullurl: required, string, format: uri, read-onlyhtml_url: required, string, format: uri, read-onlysummary: required, string, maxLength: 1024description: required, string or null, maxLength: 65535severity: required, string or null, enum: critical, high, medium, low, nullauthor: required, all of:
name: string or nullemail: string or nulllogin: required, stringid: required, integer, format: int64node_id: required, stringavatar_url: required, string, format: urigravatar_id: required, string or nullurl: required, string, format: urihtml_url: required, string, format: urifollowers_url: required, string, format: urifollowing_url: required, stringgists_url: required, stringstarred_url: required, stringsubscriptions_url: required, string, format: uriorganizations_url: required, string, format: urirepos_url: required, string, format: urievents_url: required, stringreceived_events_url: required, string, format: uritype: required, stringsite_admin: required, booleanstarred_at: stringuser_view_type: stringpublisher: required, all of:
identifiers: required, array of objects:
type: required, string, enum: CVE, GHSAvalue: required, stringstate: required, string, enum: published, closed, withdrawn, draft, triagecreated_at: required, string or null, format: date-time, read-onlyupdated_at: required, string or null, format: date-time, read-onlypublished_at: required, string or null, format: date-time, read-onlyclosed_at: required, string or null, format: date-time, read-onlywithdrawn_at: required, string or null, format: date-time, read-onlysubmission: required, object or null, read-only:
accepted: required, boolean, read-onlyvulnerabilities: required, array of objects or null:
package: required, object or null:
ecosystem: required, string, enum: rubygems, npm, pip, maven, nuget, composer, go, rust, erlang, actions, pub, other, swiftname: required, string or nullvulnerable_version_range: required, string or nullpatched_versions: required, string or nullvulnerable_functions: required, array of string or nullcvss_severities: object or null:
cvss_v3: object or null:
vector_string: required, string or nullscore: required, number or null, read-only, minimum: 0, maximum: 10cvss_v4: object or null:
vector_string: required, string or nullscore: required, number or null, read-only, minimum: 0, maximum: 10cwes: required, array of objects or null:
cwe_id: required, stringname: required, string, read-onlycwe_ids: required, array of string or nullcredits: required, array of objects or null:
login: stringtype: string, enum: analyst, finder, reporter, coordinator, remediation_developer, remediation_reviewer, remediation_verifier, tool, sponsor, othercredits_detailed: required, array of objects or null:
user: required, Simple User (see above)type: required, string, enum: analyst, finder, reporter, coordinator, remediation_developer, remediation_reviewer, remediation_verifier, tool, sponsor, otherstate: required, string, enum: accepted, declined, pendingcollaborating_users: required, array of Simple User or null (see above)collaborating_teams: required, array of Team or null:
id: required, integernode_id: required, stringname: required, stringslug: required, stringdescription: required, string or nullprivacy: stringnotification_setting: stringpermission: required, stringpermissions: object:
pull: required, booleantriage: required, booleanpush: required, booleanmaintain: required, booleanadmin: required, booleanurl: required, string, format: urihtml_url: required, string, format: urimembers_url: required, stringrepositories_url: required, string, format: uritype: required, string, enum: enterprise, organizationaccess_source: string, enum: direct, organization, enterpriseorganization_id: integerenterprise_id: integerparent: required, any of:
id: required, integernode_id: required, stringurl: required, string, format: urimembers_url: required, stringname: required, stringdescription: required, string or nullpermission: required, stringprivacy: stringnotification_setting: stringhtml_url: required, string, format: urirepositories_url: required, string, format: urislug: required, stringldap_dn: stringtype: required, string, enum: enterprise, organizationorganization_id: integerenterprise_id: integerprivate_fork: required, all of:
id: required, integer, format: int64node_id: required, stringname: required, stringfull_name: required, stringowner: required, Simple User (see above)private: required, booleanhtml_url: required, string, format: uridescription: required, string or nullfork: required, booleanurl: required, string, format: uriarchive_url: required, stringassignees_url: required, stringblobs_url: required, stringbranches_url: required, stringcollaborators_url: required, stringcomments_url: required, stringcommits_url: required, stringcompare_url: required, stringcontents_url: required, stringcontributors_url: required, string, format: urideployments_url: required, string, format: uridownloads_url: required, string, format: urievents_url: required, string, format: uriforks_url: required, string, format: urigit_commits_url: required, stringgit_refs_url: required, stringgit_tags_url: required, stringissue_comment_url: required, stringissue_events_url: required, stringissues_url: required, stringkeys_url: required, stringlabels_url: required, stringlanguages_url: required, string, format: urimerges_url: required, string, format: urimilestones_url: required, stringnotifications_url: required, stringpulls_url: required, stringreleases_url: required, stringstargazers_url: required, string, format: uristatuses_url: required, stringsubscribers_url: required, string, format: urisubscription_url: required, string, format: uritags_url: required, string, format: uriteams_url: required, string, format: uritrees_url: required, stringhooks_url: required, string, format: uriGET /repos/{owner}/{repo}/security-advisories
Lists security advisories in a repository.
The authenticated user can access unpublished security advisories from a repository if they are a security manager or administrator of that repository, or if they are a collaborator on any security advisory.
OAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:read scope to to get a published security advisory in a private repository, or any unpublished security advisory that the authenticated user has access to.
accept (string)application/vnd.github+json is recommended.owner (string) (required)
The account owner of the repository. The name is not case sensitive.
repo (string) (required)
The name of the repository without the .git extension. The name is not case sensitive.
direction (string)
The direction to sort the results by.
Default: desc
Can be one of: asc, desc
sort (string)
The property to sort the results by.
Default: created
Can be one of: created, updated, published
before (string)
A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API."
after (string)
A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API."
per_page (integer)
The number of advisories to return per page. For more information, see "Using pagination in the REST API."
Default: 30
state (string)
Filter by state of the repository advisories. Only advisories of this state will be returned.
Can be one of: triage, draft, published, closed
200 - OK
400 - Bad Request
404 - Resource not found
Request:
curl -L \
-X GET \
https://api.github.com/repos/OWNER/REPO/security-advisories
Response schema (Status: 200):
Same response schema as List repository security advisories for an organization.
POST /repos/{owner}/{repo}/security-advisories
Creates a new repository security advisory.
In order to create a draft repository security advisory, the authenticated user must be a security manager or administrator of that repository.
OAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:write scope to use this endpoint.
accept (string)application/vnd.github+json is recommended.owner (string) (required)
The account owner of the repository. The name is not case sensitive.
repo (string) (required)
The name of the repository without the .git extension. The name is not case sensitive.
summary (string) (required)
A short summary of the advisory.
description (string) (required)
A detailed description of what the advisory impacts.
cve_id (string or null)
The Common Vulnerabilities and Exposures (CVE) ID.
vulnerabilities (array of objects) (required)
A product affected by the vulnerability detailed in a repository security advisory.
package (object) (required)ecosystem (string) (required)rubygems, npm, pip, maven, nuget, composer, go, rust, erlang, actions, pub, other, swiftname (string or null)vulnerable_version_range (string or null)patched_versions (string or null)vulnerable_functions (array of strings or null)cwe_ids (array of strings or null)
A list of Common Weakness Enumeration (CWE) IDs.
credits (array of objects or null)
A list of users receiving credit for their participation in the security advisory.
login (string) (required)type (string) (required)analyst, finder, reporter, coordinator, remediation_developer, remediation_reviewer, remediation_verifier, tool, sponsor, otherseverity (string or null)
The severity of the advisory. You must choose between setting this field or cvss_vector_string.
Can be one of: critical, high, medium, low, null
cvss_vector_string (string or null)
The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or severity.
start_private_fork (boolean)
Whether to create a temporary private fork of the repository to collaborate on a fix.
Default: false
201 - Created
403 - Forbidden
404 - Resource not found
422 - Validation failed.
Request:
curl -L \
-X POST \
https://api.github.com/repos/OWNER/REPO/security-advisories \
-d '{
"summary": "A new important advisory",
"description": "A more in-depth description of what the problem is.",
"severity": "high",
"cve_id": null,
"vulnerabilities": [
{
"package": {
"name": "a-package",
"ecosystem": "npm"
},
"vulnerable_version_range": "< 1.0.0",
"patched_versions": "1.0.0",
"vulnerable_functions": [
"important_function"
]
}
],
"cwe_ids": [
"CWE-1101",
"CWE-20"
],
"credits": [
{
"login": "monalisa",
"type": "reporter"
},
{
"login": "octocat",
"type": "analyst"
}
]
}'
Response schema (Status: 201):
ghsa_id: required, string, read-onlycve_id: required, string or nullurl: required, string, format: uri, read-onlyhtml_url: required, string, format: uri, read-onlysummary: required, string, maxLength: 1024description: required, string or null, maxLength: 65535severity: required, string or null, enum: critical, high, medium, low, nullauthor: required, all of:
name: string or nullemail: string or nulllogin: required, stringid: required, integer, format: int64node_id: required, stringavatar_url: required, string, format: urigravatar_id: required, string or nullurl: required, string, format: urihtml_url: required, string, format: urifollowers_url: required, string, format: urifollowing_url: required, stringgists_url: required, stringstarred_url: required, stringsubscriptions_url: required, string, format: uriorganizations_url: required, string, format: urirepos_url: required, string, format: urievents_url: required, stringreceived_events_url: required, string, format: uritype: required, stringsite_admin: required, booleanstarred_at: stringuser_view_type: stringpublisher: required, all of:
identifiers: required, array of objects:
type: required, string, enum: CVE, GHSAvalue: required, stringstate: required, string, enum: published, closed, withdrawn, draft, triagecreated_at: required, string or null, format: date-time, read-onlyupdated_at: required, string or null, format: date-time, read-onlypublished_at: required, string or null, format: date-time, read-onlyclosed_at: required, string or null, format: date-time, read-onlywithdrawn_at: required, string or null, format: date-time, read-onlysubmission: required, object or null, read-only:
accepted: required, boolean, read-onlyvulnerabilities: required, array of objects or null:
package: required, object or null:
ecosystem: required, string, enum: rubygems, npm, pip, maven, nuget, composer, go, rust, erlang, actions, pub, other, swiftname: required, string or nullvulnerable_version_range: required, string or nullpatched_versions: required, string or nullvulnerable_functions: required, array of string or nullcvss_severities: object or null:
cvss_v3: object or null:
vector_string: required, string or nullscore: required, number or null, read-only, minimum: 0, maximum: 10cvss_v4: object or null:
vector_string: required, string or nullscore: required, number or null, read-only, minimum: 0, maximum: 10cwes: required, array of objects or null:
cwe_id: required, stringname: required, string, read-onlycwe_ids: required, array of string or nullcredits: required, array of objects or null:
login: stringtype: string, enum: analyst, finder, reporter, coordinator, remediation_developer, remediation_reviewer, remediation_verifier, tool, sponsor, othercredits_detailed: required, array of objects or null:
user: required, Simple User (see above)type: required, string, enum: analyst, finder, reporter, coordinator, remediation_developer, remediation_reviewer, remediation_verifier, tool, sponsor, otherstate: required, string, enum: accepted, declined, pendingcollaborating_users: required, array of Simple User or null (see above)collaborating_teams: required, array of Team or null:
id: required, integernode_id: required, stringname: required, stringslug: required, stringdescription: required, string or nullprivacy: stringnotification_setting: stringpermission: required, stringpermissions: object:
pull: required, booleantriage: required, booleanpush: required, booleanmaintain: required, booleanadmin: required, booleanurl: required, string, format: urihtml_url: required, string, format: urimembers_url: required, stringrepositories_url: required, string, format: uritype: required, string, enum: enterprise, organizationaccess_source: string, enum: direct, organization, enterpriseorganization_id: integerenterprise_id: integerparent: required, any of:
id: required, integernode_id: required, stringurl: required, string, format: urimembers_url: required, stringname: required, stringdescription: required, string or nullpermission: required, stringprivacy: stringnotification_setting: stringhtml_url: required, string, format: urirepositories_url: required, string, format: urislug: required, stringldap_dn: stringtype: required, string, enum: enterprise, organizationorganization_id: integerenterprise_id: integerprivate_fork: required, all of:
id: required, integer, format: int64node_id: required, stringname: required, stringfull_name: required, stringowner: required, Simple User (see above)private: required, booleanhtml_url: required, string, format: uridescription: required, string or nullfork: required, booleanurl: required, string, format: uriarchive_url: required, stringassignees_url: required, stringblobs_url: required, stringbranches_url: required, stringcollaborators_url: required, stringcomments_url: required, stringcommits_url: required, stringcompare_url: required, stringcontents_url: required, stringcontributors_url: required, string, format: urideployments_url: required, string, format: uridownloads_url: required, string, format: urievents_url: required, string, format: uriforks_url: required, string, format: urigit_commits_url: required, stringgit_refs_url: required, stringgit_tags_url: required, stringissue_comment_url: required, stringissue_events_url: required, stringissues_url: required, stringkeys_url: required, stringlabels_url: required, stringlanguages_url: required, string, format: urimerges_url: required, string, format: urimilestones_url: required, stringnotifications_url: required, stringpulls_url: required, stringreleases_url: required, stringstargazers_url: required, string, format: uristatuses_url: required, stringsubscribers_url: required, string, format: urisubscription_url: required, string, format: uritags_url: required, string, format: uriteams_url: required, string, format: uritrees_url: required, stringhooks_url: required, string, format: uriPOST /repos/{owner}/{repo}/security-advisories/reports
Report a security vulnerability to the maintainers of the repository.
See "Privately reporting a security vulnerability" for more information about private vulnerability reporting.
accept (string)application/vnd.github+json is recommended.owner (string) (required)
The account owner of the repository. The name is not case sensitive.
repo (string) (required)
The name of the repository without the .git extension. The name is not case sensitive.
summary (string) (required)
A short summary of the advisory.
description (string) (required)
A detailed description of what the advisory impacts.
vulnerabilities (array of objects or null)
An array of products affected by the vulnerability detailed in a repository security advisory.
package (object) (required)ecosystem (string) (required)rubygems, npm, pip, maven, nuget, composer, go, rust, erlang, actions, pub, other, swiftname (string or null)vulnerable_version_range (string or null)patched_versions (string or null)vulnerable_functions (array of strings or null)cwe_ids (array of strings or null)
A list of Common Weakness Enumeration (CWE) IDs.
severity (string or null)
The severity of the advisory. You must choose between setting this field or cvss_vector_string.
Can be one of: critical, high, medium, low, null
cvss_vector_string (string or null)
The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or severity.
start_private_fork (boolean)
Whether to create a temporary private fork of the repository to collaborate on a fix. The fork is created only if you are permitted to create one; otherwise, this parameter is ignored and the report is still created.
Default: false
201 - Created
403 - Forbidden
404 - Resource not found
422 - Validation failed.
Request:
curl -L \
-X POST \
https://api.github.com/repos/OWNER/REPO/security-advisories/reports \
-d '{
"summary": "A newly discovered vulnerability",
"description": "A more in-depth description of what the problem is.",
"severity": "high",
"vulnerabilities": [
{
"package": {
"name": "a-package",
"ecosystem": "npm"
},
"vulnerable_version_range": "< 1.0.0",
"patched_versions": "1.0.0",
"vulnerable_functions": [
"important_function"
]
}
],
"cwe_ids": [
"CWE-123"
]
}'
Response schema (Status: 201):
Same response schema as Create a repository security advisory.
GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}
Get a repository security advisory using its GitHub Security Advisory (GHSA) identifier.
Anyone can access any published security advisory on a public repository.
The authenticated user can access an unpublished security advisory from a repository if they are a security manager or administrator of that repository, or if they are a
collaborator on the security advisory.
OAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:read scope to to get a published security advisory in a private repository, or any unpublished security advisory that the authenticated user has access to.
accept (string)application/vnd.github+json is recommended.owner (string) (required)
The account owner of the repository. The name is not case sensitive.
repo (string) (required)
The name of the repository without the .git extension. The name is not case sensitive.
ghsa_id (string) (required)
The GHSA (GitHub Security Advisory) identifier of the advisory.
200 - OK
403 - Forbidden
404 - Resource not found
Request:
curl -L \
-X GET \
https://api.github.com/repos/OWNER/REPO/security-advisories/GHSA_ID
Response schema (Status: 200):
Same response schema as Create a repository security advisory.
PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}
Update a repository security advisory using its GitHub Security Advisory (GHSA) identifier.
In order to update any security advisory, the authenticated user must be a security manager or administrator of that repository,
or a collaborator on the repository security advisory.
OAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:write scope to use this endpoint.
accept (string)application/vnd.github+json is recommended.owner (string) (required)
The account owner of the repository. The name is not case sensitive.
repo (string) (required)
The name of the repository without the .git extension. The name is not case sensitive.
ghsa_id (string) (required)
The GHSA (GitHub Security Advisory) identifier of the advisory.
summary (string)
A short summary of the advisory.
description (string)
A detailed description of what the advisory impacts.
cve_id (string or null)
The Common Vulnerabilities and Exposures (CVE) ID.
vulnerabilities (array of objects)
A product affected by the vulnerability detailed in a repository security advisory.
package (object) (required)ecosystem (string) (required)rubygems, npm, pip, maven, nuget, composer, go, rust, erlang, actions, pub, other, swiftname (string or null)vulnerable_version_range (string or null)patched_versions (string or null)vulnerable_functions (array of strings or null)cwe_ids (array of strings or null)
A list of Common Weakness Enumeration (CWE) IDs.
credits (array of objects or null)
A list of users receiving credit for their participation in the security advisory.
login (string) (required)type (string) (required)analyst, finder, reporter, coordinator, remediation_developer, remediation_reviewer, remediation_verifier, tool, sponsor, otherseverity (string or null)
The severity of the advisory. You must choose between setting this field or cvss_vector_string.
Can be one of: critical, high, medium, low, null
cvss_vector_string (string or null)
The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or severity.
state (string)
The state of the advisory.
Can be one of: published, closed, draft
collaborating_users (array of strings or null)
A list of usernames who have been granted write access to the advisory.
collaborating_teams (array of strings or null)
A list of team slugs which have been granted write access to the advisory.
200 - OK
403 - Forbidden
404 - Resource not found
422 - Validation failed, or the endpoint has been spammed.
Request:
curl -L \
-X PATCH \
https://api.github.com/repos/OWNER/REPO/security-advisories/GHSA_ID \
-d '{
"severity": "critical",
"state": "published"
}'
Response schema (Status: 200):
Same response schema as Create a repository security advisory.
Request:
curl -L \
-X PATCH \
https://api.github.com/repos/OWNER/REPO/security-advisories/GHSA_ID \
-d '{
"credits": [
{
"login": "monauser",
"type": "remediation_developer"
}
]
}'
Response schema (Status: 200):
Same response schema as Create a repository security advisory.
POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve
If you want a CVE identification number for the security vulnerability in your project, and don't already have one, you can request a CVE identification number from GitHub. For more information see "Requesting a CVE identification number."
You may request a CVE for public repositories, but cannot do so for private repositories.
In order to request a CVE for a repository security advisory, the authenticated user must be a security manager or administrator of that repository.
OAuth app tokens and personal access tokens (classic) need the repo or repository_advisories:write scope to use this endpoint.
accept (string)application/vnd.github+json is recommended.owner (string) (required)
The account owner of the repository. The name is not case sensitive.
repo (string) (required)
The name of the repository without the .git extension. The name is not case sensitive.
ghsa_id (string) (required)
The GHSA (GitHub Security Advisory) identifier of the advisory.
202 - Accepted
400 - Bad Request
403 - Forbidden
404 - Resource not found
422 - Validation failed, or the endpoint has been spammed.
Request:
curl -L \
-X POST \
https://api.github.com/repos/OWNER/REPO/security-advisories/GHSA_ID/cve
Response schema (Status: 202):
object
POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks
Create a temporary private fork to collaborate on fixing a security vulnerability in a repository.
Repository administrators, organization owners, and security managers can create a temporary private fork. The original reporter of a privately reported vulnerability can also create one while they remain a collaborator on the security advisory.
Note
Forking a repository happens asynchronously. You may have to wait up to 5 minutes before you can access the fork.
accept (string)application/vnd.github+json is recommended.owner (string) (required)
The account owner of the repository. The name is not case sensitive.
repo (string) (required)
The name of the repository without the .git extension. The name is not case sensitive.
ghsa_id (string) (required)
The GHSA (GitHub Security Advisory) identifier of the advisory.
202 - Accepted
400 - Bad Request
403 - Forbidden
404 - Resource not found
422 - Validation failed, or the endpoint has been spammed.
Request:
curl -L \
-X POST \
https://api.github.com/repos/OWNER/REPO/security-advisories/GHSA_ID/forks
Response schema (Status: 202):
id: required, integer, format: int64node_id: required, stringname: required, stringfull_name: required, stringowner: required, Simple User:
name: string or nullemail: string or nulllogin: required, stringid: required, integer, format: int64node_id: required, stringavatar_url: required, string, format: urigravatar_id: required, string or nullurl: required, string, format: urihtml_url: required, string, format: urifollowers_url: required, string, format: urifollowing_url: required, stringgists_url: required, stringstarred_url: required, stringsubscriptions_url: required, string, format: uriorganizations_url: required, string, format: urirepos_url: required, string, format: urievents_url: required, stringreceived_events_url: required, string, format: uritype: required, stringsite_admin: required, booleanstarred_at: stringuser_view_type: stringprivate: required, booleanhtml_url: required, string, format: uridescription: required, string or nullfork: required, booleanurl: required, string, format: uriarchive_url: required, stringassignees_url: required, stringblobs_url: required, stringbranches_url: required, stringcollaborators_url: required, stringcomments_url: required, stringcommits_url: required, stringcompare_url: required, stringcontents_url: required, stringcontributors_url: required, string, format: urideployments_url: required, string, format: uridownloads_url: required, string, format: urievents_url: required, string, format: uriforks_url: required, string, format: urigit_commits_url: required, stringgit_refs_url: required, stringgit_tags_url: required, stringgit_url: required, stringissue_comment_url: required, stringissue_events_url: required, stringissues_url: required, stringkeys_url: required, stringlabels_url: required, stringlanguages_url: required, string, format: urimerges_url: required, string, format: urimilestones_url: required, stringnotifications_url: required, stringpulls_url: required, stringreleases_url: required, stringssh_url: required, stringstargazers_url: required, string, format: uristatuses_url: required, stringsubscribers_url: required, string, format: urisubscription_url: required, string, format: uritags_url: required, string, format: uriteams_url: required, string, format: uritrees_url: required, stringclone_url: required, stringmirror_url: required, string or null, format: urihooks_url: required, string, format: urisvn_url: required, string, format: urihomepage: required, string or null, format: urilanguage: required, string or nullforks_count: required, integerstargazers_count: required, integerwatchers_count: required, integersize: required, integerdefault_branch: required, stringopen_issues_count: required, integeris_template: booleantopics: array of stringhas_issues: required, booleanhas_projects: required, booleanhas_wiki: required, booleanhas_pages: required, booleanhas_discussions: required, booleanhas_pull_requests: booleanpull_request_creation_policy: string, enum: all, collaborators_onlyarchived: required, booleandisabled: required, booleanvisibility: stringpushed_at: required, string, format: date-timecreated_at: required, string, format: date-timeupdated_at: required, string, format: date-timepermissions: object:
admin: required, booleanmaintain: booleanpush: required, booleantriage: booleanpull: required, booleanallow_rebase_merge: booleantemplate_repository: any of:
id: required, integer, format: int64node_id: required, stringname: required, stringfull_name: required, stringlicense: required, any of:
key: required, stringname: required, stringurl: required, string or null, format: urispdx_id: required, string or nullnode_id: required, stringhtml_url: string, format: uriforks: required, integerpermissions: object:
admin: required, booleanpull: required, booleantriage: booleanpush: required, booleanmaintain: booleanowner: required, Simple User (see above)private: required, boolean, default: falsehtml_url: required, string, format: uridescription: required, string or nullfork: required, booleanurl: required, string, format: uriarchive_url: required, stringassignees_url: required, stringblobs_url: required, stringbranches_url: required, stringcollaborators_url: required, stringcomments_url: required, stringcommits_url: required, stringcompare_url: required, stringcontents_url: required, stringcontributors_url: required, string, format: urideployments_url: required, string, format: uridownloads_url: required, string, format: urievents_url: required, string, format: uriforks_url: required, string, format: urigit_commits_url: required, stringgit_refs_url: required, stringgit_tags_url: required, stringgit_url: required, stringissue_comment_url: required, stringissue_events_url: required, stringissues_url: required, stringkeys_url: required, stringlabels_url: required, stringlanguages_url: required, string, format: urimerges_url: required, string, format: urimilestones_url: required, stringnotifications_url: required, stringpulls_url: required, stringreleases_url: required, stringssh_url: required, stringstargazers_url: required, string, format: uristatuses_url: required, stringsubscribers_url: required, string, format: urisubscription_url: required, string, format: uritags_url: required, string, format: uriteams_url: required, string, format: uritrees_url: required, stringclone_url: required, stringmirror_url: required, string or null, format: urihooks_url: required, string, format: urisvn_url: required, string, format: urihomepage: required, string or null, format: urilanguage: required, string or nullforks_count: required, integerstargazers_count: required, integerwatchers_count: required, integersize: required, integerdefault_branch: required, stringopen_issues_count: required, integeris_template: boolean, default: falsetopics: array of stringhas_issues: required, boolean, default: truehas_projects: required, boolean, default: truehas_wiki: required, boolean, default: truehas_pages: required, booleanhas_discussions: boolean, default: falsehas_pull_requests: boolean, default: truepull_request_creation_policy: string, enum: all, collaborators_onlyarchived: required, boolean, default: falsedisabled: required, booleanvisibility: string, default: "public"pushed_at: required, string or null, format: date-timecreated_at: required, string or null, format: date-timeupdated_at: required, string or null, format: date-timeallow_rebase_merge: boolean, default: truetemp_clone_token: stringallow_squash_merge: boolean, default: trueallow_auto_merge: boolean, default: falsedelete_branch_on_merge: boolean, default: falseallow_update_branch: boolean, default: falsesquash_merge_commit_title: string, enum: PR_TITLE, COMMIT_OR_PR_TITLEsquash_merge_commit_message: string, enum: PR_BODY, COMMIT_MESSAGES, BLANKmerge_commit_title: string, enum: PR_TITLE, MERGE_MESSAGEmerge_commit_message: string, enum: PR_BODY, PR_TITLE, BLANKallow_merge_commit: boolean, default: trueallow_forking: booleanweb_commit_signoff_required: boolean, default: falseopen_issues: required, integerwatchers: required, integerstarred_at: stringanonymous_access_enabled: booleancode_search_index_status: object:
lexical_search_ok: booleanlexical_commit_sha: stringtemp_clone_token: string or nullallow_squash_merge: booleanallow_auto_merge: booleandelete_branch_on_merge: booleanallow_merge_commit: booleanallow_update_branch: booleansquash_merge_commit_title: string, enum: PR_TITLE, COMMIT_OR_PR_TITLEsquash_merge_commit_message: string, enum: PR_BODY, COMMIT_MESSAGES, BLANKmerge_commit_title: string, enum: PR_TITLE, MERGE_MESSAGEmerge_commit_message: string, enum: PR_BODY, PR_TITLE, BLANKallow_forking: booleanweb_commit_signoff_required: booleansubscribers_count: required, integernetwork_count: required, integerlicense: required, any of:
organization: any of:
parent: Repository (see above)source: Repository (see above)forks: required, integermaster_branch: stringopen_issues: required, integerwatchers: required, integeranonymous_access_enabled: boolean, default: truecode_of_conduct: Code Of Conduct Simple:
url: required, string, format: urikey: required, stringname: required, stringhtml_url: required, string or null, format: urisecurity_and_analysis: object or null:
advanced_security: object:
status: string, enum: enabled, disabledcode_security: object:
status: string, enum: enabled, disableddependabot_security_updates: object:
status: string, enum: enabled, disabledsecret_scanning: object:
status: string, enum: enabled, disabledsecret_scanning_push_protection: object:
status: string, enum: enabled, disabledsecret_scanning_non_provider_patterns: object:
status: string, enum: enabled, disabledsecret_scanning_ai_detection: object:
status: string, enum: enabled, disabledsecret_scanning_delegated_alert_dismissal: object:
status: string, enum: enabled, disabledsecret_scanning_delegated_bypass: object:
status: string, enum: enabled, disabledsecret_scanning_delegated_bypass_options: object:
reviewers: array of objects:
reviewer_id: required, integerreviewer_type: required, string, enum: TEAM, ROLEmode: string, enum: ALWAYS, EXEMPT, default: "ALWAYS"custom_properties: object, additional properties allowed