1
0
mirror of synced 2026-01-19 09:01:40 -05:00

Merge pull request #23193 from github/repo-sync

repo sync
This commit is contained in:
Octomerger Bot
2023-01-12 12:36:37 -08:00
committed by GitHub
7 changed files with 1085 additions and 4 deletions

View File

@@ -139,7 +139,7 @@ function ResultsPagination({ page, totalPages }: { page: number; totalPages: num
return (
<Box borderRadius={2} p={2}>
<Pagination
pageCount={totalPages}
pageCount={Math.min(totalPages, 10)}
currentPage={page}
hrefBuilder={hrefBuilder}
onPageChange={(event, page) => {

View File

@@ -25,13 +25,13 @@ shortTitle: Policies for security settings
## About policies for security settings in your enterprise
You can enforce policies to control the security settings for organizations owned by your enterprise on {% data variables.product.product_name %}. By default, organization owners can manage security settings.
You can enforce policies to control the security settings for organizations owned by your enterprise on {% data variables.product.product_name %}. By default, organization owners can manage security settings.
{% ifversion ghec or ghes %}
## Requiring two-factor authentication for organizations in your enterprise
Enterprise owners can require that organization members, billing managers, and outside collaborators in all organizations owned by an enterprise use two-factor authentication to secure their user accounts.
{% ifversion ghes%}If {% data variables.location.product_location %} uses LDAP or built-in authentication, enterprise{% else %}Enterprise{% endif %} owners can require that organization members, billing managers, and outside collaborators in all organizations owned by an enterprise use two-factor authentication to secure their user accounts.
Before you can require 2FA for all organizations owned by your enterprise, you must enable two-factor authentication for your own account. For more information, see "[Securing your account with two-factor authentication (2FA)](/articles/securing-your-account-with-two-factor-authentication-2fa/)."

View File

@@ -9047,6 +9047,276 @@
}
}
},
"repository_vulnerability_alert": {
"create": {
"descriptionHtml": "<p>A repository vulnerability alert was created.</p>",
"summaryHtml": "<p>This event occurs when there is activity relating to a security vulnerability alert in a repository.</p>\n<p><strong>Note</strong>: This event is deprecated. Use the <code>dependabot_alert</code> event instead.</p>",
"bodyParameters": [
{
"type": "string",
"name": "action",
"in": "body",
"description": "",
"isRequired": true,
"enum": [
"create"
],
"childParamsGroups": []
},
{
"type": "",
"name": "alert",
"in": "body",
"description": "",
"isRequired": true
},
{
"type": "object",
"name": "enterprise",
"in": "body",
"description": "<p>An enterprise on GitHub.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "installation",
"in": "body",
"description": "<p>The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "organization",
"in": "body",
"description": "<p>A GitHub organization.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "repository",
"in": "body",
"description": "<p>A repository on GitHub.</p>",
"isRequired": true,
"childParamsGroups": []
},
{
"type": "object",
"name": "sender",
"in": "body",
"description": "<p>A GitHub user.</p>",
"isRequired": true,
"childParamsGroups": []
}
],
"availability": [
"Repository webhooks",
"Organization webhooks"
],
"action": "create",
"category": "repository_vulnerability_alert"
},
"dismiss": {
"descriptionHtml": "<p>A repository vulnerability alert was dismissed.</p>",
"summaryHtml": "<p>This event occurs when there is activity relating to a security vulnerability alert in a repository.</p>\n<p><strong>Note</strong>: This event is deprecated. Use the <code>dependabot_alert</code> event instead.</p>",
"bodyParameters": [
{
"type": "string",
"name": "action",
"in": "body",
"description": "",
"isRequired": true,
"enum": [
"dismiss"
],
"childParamsGroups": []
},
{
"type": "",
"name": "alert",
"in": "body",
"description": "",
"isRequired": true
},
{
"type": "object",
"name": "enterprise",
"in": "body",
"description": "<p>An enterprise on GitHub.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "installation",
"in": "body",
"description": "<p>The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "organization",
"in": "body",
"description": "<p>A GitHub organization.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "repository",
"in": "body",
"description": "<p>A repository on GitHub.</p>",
"isRequired": true,
"childParamsGroups": []
},
{
"type": "object",
"name": "sender",
"in": "body",
"description": "<p>A GitHub user.</p>",
"isRequired": true,
"childParamsGroups": []
}
],
"availability": [
"Repository webhooks",
"Organization webhooks"
],
"action": "dismiss",
"category": "repository_vulnerability_alert"
},
"reopen": {
"descriptionHtml": "<p>A previously dismissed or resolved repository vulnerability alert was reopened.</p>",
"summaryHtml": "<p>This event occurs when there is activity relating to a security vulnerability alert in a repository.</p>\n<p><strong>Note</strong>: This event is deprecated. Use the <code>dependabot_alert</code> event instead.</p>",
"bodyParameters": [
{
"type": "string",
"name": "action",
"in": "body",
"description": "",
"isRequired": true,
"enum": [
"reopen"
],
"childParamsGroups": []
},
{
"type": "",
"name": "alert",
"in": "body",
"description": "",
"isRequired": true
},
{
"type": "object",
"name": "enterprise",
"in": "body",
"description": "<p>An enterprise on GitHub.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "installation",
"in": "body",
"description": "<p>The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "organization",
"in": "body",
"description": "<p>A GitHub organization.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "repository",
"in": "body",
"description": "<p>A repository on GitHub.</p>",
"isRequired": true,
"childParamsGroups": []
},
{
"type": "object",
"name": "sender",
"in": "body",
"description": "<p>A GitHub user.</p>",
"isRequired": true,
"childParamsGroups": []
}
],
"availability": [
"Repository webhooks",
"Organization webhooks"
],
"action": "reopen",
"category": "repository_vulnerability_alert"
},
"resolve": {
"descriptionHtml": "<p>A repository vulnerability alert was marked as resolved.</p>",
"summaryHtml": "<p>This event occurs when there is activity relating to a security vulnerability alert in a repository.</p>\n<p><strong>Note</strong>: This event is deprecated. Use the <code>dependabot_alert</code> event instead.</p>",
"bodyParameters": [
{
"type": "string",
"name": "action",
"in": "body",
"description": "",
"isRequired": true,
"enum": [
"resolve"
],
"childParamsGroups": []
},
{
"type": "",
"name": "alert",
"in": "body",
"description": "",
"isRequired": true
},
{
"type": "object",
"name": "enterprise",
"in": "body",
"description": "<p>An enterprise on GitHub.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "installation",
"in": "body",
"description": "<p>The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "organization",
"in": "body",
"description": "<p>A GitHub organization.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "repository",
"in": "body",
"description": "<p>A repository on GitHub.</p>",
"isRequired": true,
"childParamsGroups": []
},
{
"type": "object",
"name": "sender",
"in": "body",
"description": "<p>A GitHub user.</p>",
"isRequired": true,
"childParamsGroups": []
}
],
"availability": [
"Repository webhooks",
"Organization webhooks"
],
"action": "resolve",
"category": "repository_vulnerability_alert"
}
},
"secret_scanning_alert": {
"reopened": {
"category": "secret_scanning_alert",

View File

@@ -9304,6 +9304,276 @@
}
}
},
"repository_vulnerability_alert": {
"create": {
"descriptionHtml": "<p>A repository vulnerability alert was created.</p>",
"summaryHtml": "<p>This event occurs when there is activity relating to a security vulnerability alert in a repository.</p>\n<p><strong>Note</strong>: This event is deprecated. Use the <code>dependabot_alert</code> event instead.</p>",
"bodyParameters": [
{
"type": "string",
"name": "action",
"in": "body",
"description": "",
"isRequired": true,
"enum": [
"create"
],
"childParamsGroups": []
},
{
"type": "",
"name": "alert",
"in": "body",
"description": "",
"isRequired": true
},
{
"type": "object",
"name": "enterprise",
"in": "body",
"description": "<p>An enterprise on GitHub.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "installation",
"in": "body",
"description": "<p>The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "organization",
"in": "body",
"description": "<p>A GitHub organization.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "repository",
"in": "body",
"description": "<p>A repository on GitHub.</p>",
"isRequired": true,
"childParamsGroups": []
},
{
"type": "object",
"name": "sender",
"in": "body",
"description": "<p>A GitHub user.</p>",
"isRequired": true,
"childParamsGroups": []
}
],
"availability": [
"repository",
"organization"
],
"action": "create",
"category": "repository_vulnerability_alert"
},
"dismiss": {
"descriptionHtml": "<p>A repository vulnerability alert was dismissed.</p>",
"summaryHtml": "<p>This event occurs when there is activity relating to a security vulnerability alert in a repository.</p>\n<p><strong>Note</strong>: This event is deprecated. Use the <code>dependabot_alert</code> event instead.</p>",
"bodyParameters": [
{
"type": "string",
"name": "action",
"in": "body",
"description": "",
"isRequired": true,
"enum": [
"dismiss"
],
"childParamsGroups": []
},
{
"type": "",
"name": "alert",
"in": "body",
"description": "",
"isRequired": true
},
{
"type": "object",
"name": "enterprise",
"in": "body",
"description": "<p>An enterprise on GitHub.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "installation",
"in": "body",
"description": "<p>The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "organization",
"in": "body",
"description": "<p>A GitHub organization.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "repository",
"in": "body",
"description": "<p>A repository on GitHub.</p>",
"isRequired": true,
"childParamsGroups": []
},
{
"type": "object",
"name": "sender",
"in": "body",
"description": "<p>A GitHub user.</p>",
"isRequired": true,
"childParamsGroups": []
}
],
"availability": [
"repository",
"organization"
],
"action": "dismiss",
"category": "repository_vulnerability_alert"
},
"reopen": {
"descriptionHtml": "<p>A previously dismissed or resolved repository vulnerability alert was reopened.</p>",
"summaryHtml": "<p>This event occurs when there is activity relating to a security vulnerability alert in a repository.</p>\n<p><strong>Note</strong>: This event is deprecated. Use the <code>dependabot_alert</code> event instead.</p>",
"bodyParameters": [
{
"type": "string",
"name": "action",
"in": "body",
"description": "",
"isRequired": true,
"enum": [
"reopen"
],
"childParamsGroups": []
},
{
"type": "",
"name": "alert",
"in": "body",
"description": "",
"isRequired": true
},
{
"type": "object",
"name": "enterprise",
"in": "body",
"description": "<p>An enterprise on GitHub.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "installation",
"in": "body",
"description": "<p>The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "organization",
"in": "body",
"description": "<p>A GitHub organization.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "repository",
"in": "body",
"description": "<p>A repository on GitHub.</p>",
"isRequired": true,
"childParamsGroups": []
},
{
"type": "object",
"name": "sender",
"in": "body",
"description": "<p>A GitHub user.</p>",
"isRequired": true,
"childParamsGroups": []
}
],
"availability": [
"repository",
"organization"
],
"action": "reopen",
"category": "repository_vulnerability_alert"
},
"resolve": {
"descriptionHtml": "<p>A repository vulnerability alert was marked as resolved.</p>",
"summaryHtml": "<p>This event occurs when there is activity relating to a security vulnerability alert in a repository.</p>\n<p><strong>Note</strong>: This event is deprecated. Use the <code>dependabot_alert</code> event instead.</p>",
"bodyParameters": [
{
"type": "string",
"name": "action",
"in": "body",
"description": "",
"isRequired": true,
"enum": [
"resolve"
],
"childParamsGroups": []
},
{
"type": "",
"name": "alert",
"in": "body",
"description": "",
"isRequired": true
},
{
"type": "object",
"name": "enterprise",
"in": "body",
"description": "<p>An enterprise on GitHub.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "installation",
"in": "body",
"description": "<p>The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "organization",
"in": "body",
"description": "<p>A GitHub organization.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "repository",
"in": "body",
"description": "<p>A repository on GitHub.</p>",
"isRequired": true,
"childParamsGroups": []
},
{
"type": "object",
"name": "sender",
"in": "body",
"description": "<p>A GitHub user.</p>",
"isRequired": true,
"childParamsGroups": []
}
],
"availability": [
"repository",
"organization"
],
"action": "resolve",
"category": "repository_vulnerability_alert"
}
},
"secret_scanning_alert": {
"reopened": {
"category": "secret_scanning_alert",

View File

@@ -9304,6 +9304,276 @@
}
}
},
"repository_vulnerability_alert": {
"create": {
"descriptionHtml": "<p>A repository vulnerability alert was created.</p>",
"summaryHtml": "<p>This event occurs when there is activity relating to a security vulnerability alert in a repository.</p>\n<p><strong>Note</strong>: This event is deprecated. Use the <code>dependabot_alert</code> event instead.</p>",
"bodyParameters": [
{
"type": "string",
"name": "action",
"in": "body",
"description": "",
"isRequired": true,
"enum": [
"create"
],
"childParamsGroups": []
},
{
"type": "",
"name": "alert",
"in": "body",
"description": "",
"isRequired": true
},
{
"type": "object",
"name": "enterprise",
"in": "body",
"description": "<p>An enterprise on GitHub.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "installation",
"in": "body",
"description": "<p>The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "organization",
"in": "body",
"description": "<p>A GitHub organization.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "repository",
"in": "body",
"description": "<p>A repository on GitHub.</p>",
"isRequired": true,
"childParamsGroups": []
},
{
"type": "object",
"name": "sender",
"in": "body",
"description": "<p>A GitHub user.</p>",
"isRequired": true,
"childParamsGroups": []
}
],
"availability": [
"repository",
"organization"
],
"action": "create",
"category": "repository_vulnerability_alert"
},
"dismiss": {
"descriptionHtml": "<p>A repository vulnerability alert was dismissed.</p>",
"summaryHtml": "<p>This event occurs when there is activity relating to a security vulnerability alert in a repository.</p>\n<p><strong>Note</strong>: This event is deprecated. Use the <code>dependabot_alert</code> event instead.</p>",
"bodyParameters": [
{
"type": "string",
"name": "action",
"in": "body",
"description": "",
"isRequired": true,
"enum": [
"dismiss"
],
"childParamsGroups": []
},
{
"type": "",
"name": "alert",
"in": "body",
"description": "",
"isRequired": true
},
{
"type": "object",
"name": "enterprise",
"in": "body",
"description": "<p>An enterprise on GitHub.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "installation",
"in": "body",
"description": "<p>The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "organization",
"in": "body",
"description": "<p>A GitHub organization.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "repository",
"in": "body",
"description": "<p>A repository on GitHub.</p>",
"isRequired": true,
"childParamsGroups": []
},
{
"type": "object",
"name": "sender",
"in": "body",
"description": "<p>A GitHub user.</p>",
"isRequired": true,
"childParamsGroups": []
}
],
"availability": [
"repository",
"organization"
],
"action": "dismiss",
"category": "repository_vulnerability_alert"
},
"reopen": {
"descriptionHtml": "<p>A previously dismissed or resolved repository vulnerability alert was reopened.</p>",
"summaryHtml": "<p>This event occurs when there is activity relating to a security vulnerability alert in a repository.</p>\n<p><strong>Note</strong>: This event is deprecated. Use the <code>dependabot_alert</code> event instead.</p>",
"bodyParameters": [
{
"type": "string",
"name": "action",
"in": "body",
"description": "",
"isRequired": true,
"enum": [
"reopen"
],
"childParamsGroups": []
},
{
"type": "",
"name": "alert",
"in": "body",
"description": "",
"isRequired": true
},
{
"type": "object",
"name": "enterprise",
"in": "body",
"description": "<p>An enterprise on GitHub.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "installation",
"in": "body",
"description": "<p>The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "organization",
"in": "body",
"description": "<p>A GitHub organization.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "repository",
"in": "body",
"description": "<p>A repository on GitHub.</p>",
"isRequired": true,
"childParamsGroups": []
},
{
"type": "object",
"name": "sender",
"in": "body",
"description": "<p>A GitHub user.</p>",
"isRequired": true,
"childParamsGroups": []
}
],
"availability": [
"repository",
"organization"
],
"action": "reopen",
"category": "repository_vulnerability_alert"
},
"resolve": {
"descriptionHtml": "<p>A repository vulnerability alert was marked as resolved.</p>",
"summaryHtml": "<p>This event occurs when there is activity relating to a security vulnerability alert in a repository.</p>\n<p><strong>Note</strong>: This event is deprecated. Use the <code>dependabot_alert</code> event instead.</p>",
"bodyParameters": [
{
"type": "string",
"name": "action",
"in": "body",
"description": "",
"isRequired": true,
"enum": [
"resolve"
],
"childParamsGroups": []
},
{
"type": "",
"name": "alert",
"in": "body",
"description": "",
"isRequired": true
},
{
"type": "object",
"name": "enterprise",
"in": "body",
"description": "<p>An enterprise on GitHub.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "installation",
"in": "body",
"description": "<p>The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "organization",
"in": "body",
"description": "<p>A GitHub organization.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "repository",
"in": "body",
"description": "<p>A repository on GitHub.</p>",
"isRequired": true,
"childParamsGroups": []
},
{
"type": "object",
"name": "sender",
"in": "body",
"description": "<p>A GitHub user.</p>",
"isRequired": true,
"childParamsGroups": []
}
],
"availability": [
"repository",
"organization"
],
"action": "resolve",
"category": "repository_vulnerability_alert"
}
},
"secret_scanning_alert": {
"reopened": {
"category": "secret_scanning_alert",

View File

@@ -9304,6 +9304,276 @@
}
}
},
"repository_vulnerability_alert": {
"create": {
"descriptionHtml": "<p>A repository vulnerability alert was created.</p>",
"summaryHtml": "<p>This event occurs when there is activity relating to a security vulnerability alert in a repository.</p>\n<p><strong>Note</strong>: This event is deprecated. Use the <code>dependabot_alert</code> event instead.</p>",
"bodyParameters": [
{
"type": "string",
"name": "action",
"in": "body",
"description": "",
"isRequired": true,
"enum": [
"create"
],
"childParamsGroups": []
},
{
"type": "",
"name": "alert",
"in": "body",
"description": "",
"isRequired": true
},
{
"type": "object",
"name": "enterprise",
"in": "body",
"description": "<p>An enterprise on GitHub.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "installation",
"in": "body",
"description": "<p>The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "organization",
"in": "body",
"description": "<p>A GitHub organization.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "repository",
"in": "body",
"description": "<p>A repository on GitHub.</p>",
"isRequired": true,
"childParamsGroups": []
},
{
"type": "object",
"name": "sender",
"in": "body",
"description": "<p>A GitHub user.</p>",
"isRequired": true,
"childParamsGroups": []
}
],
"availability": [
"repository",
"organization"
],
"action": "create",
"category": "repository_vulnerability_alert"
},
"dismiss": {
"descriptionHtml": "<p>A repository vulnerability alert was dismissed.</p>",
"summaryHtml": "<p>This event occurs when there is activity relating to a security vulnerability alert in a repository.</p>\n<p><strong>Note</strong>: This event is deprecated. Use the <code>dependabot_alert</code> event instead.</p>",
"bodyParameters": [
{
"type": "string",
"name": "action",
"in": "body",
"description": "",
"isRequired": true,
"enum": [
"dismiss"
],
"childParamsGroups": []
},
{
"type": "",
"name": "alert",
"in": "body",
"description": "",
"isRequired": true
},
{
"type": "object",
"name": "enterprise",
"in": "body",
"description": "<p>An enterprise on GitHub.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "installation",
"in": "body",
"description": "<p>The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "organization",
"in": "body",
"description": "<p>A GitHub organization.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "repository",
"in": "body",
"description": "<p>A repository on GitHub.</p>",
"isRequired": true,
"childParamsGroups": []
},
{
"type": "object",
"name": "sender",
"in": "body",
"description": "<p>A GitHub user.</p>",
"isRequired": true,
"childParamsGroups": []
}
],
"availability": [
"repository",
"organization"
],
"action": "dismiss",
"category": "repository_vulnerability_alert"
},
"reopen": {
"descriptionHtml": "<p>A previously dismissed or resolved repository vulnerability alert was reopened.</p>",
"summaryHtml": "<p>This event occurs when there is activity relating to a security vulnerability alert in a repository.</p>\n<p><strong>Note</strong>: This event is deprecated. Use the <code>dependabot_alert</code> event instead.</p>",
"bodyParameters": [
{
"type": "string",
"name": "action",
"in": "body",
"description": "",
"isRequired": true,
"enum": [
"reopen"
],
"childParamsGroups": []
},
{
"type": "",
"name": "alert",
"in": "body",
"description": "",
"isRequired": true
},
{
"type": "object",
"name": "enterprise",
"in": "body",
"description": "<p>An enterprise on GitHub.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "installation",
"in": "body",
"description": "<p>The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "organization",
"in": "body",
"description": "<p>A GitHub organization.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "repository",
"in": "body",
"description": "<p>A repository on GitHub.</p>",
"isRequired": true,
"childParamsGroups": []
},
{
"type": "object",
"name": "sender",
"in": "body",
"description": "<p>A GitHub user.</p>",
"isRequired": true,
"childParamsGroups": []
}
],
"availability": [
"repository",
"organization"
],
"action": "reopen",
"category": "repository_vulnerability_alert"
},
"resolve": {
"descriptionHtml": "<p>A repository vulnerability alert was marked as resolved.</p>",
"summaryHtml": "<p>This event occurs when there is activity relating to a security vulnerability alert in a repository.</p>\n<p><strong>Note</strong>: This event is deprecated. Use the <code>dependabot_alert</code> event instead.</p>",
"bodyParameters": [
{
"type": "string",
"name": "action",
"in": "body",
"description": "",
"isRequired": true,
"enum": [
"resolve"
],
"childParamsGroups": []
},
{
"type": "",
"name": "alert",
"in": "body",
"description": "",
"isRequired": true
},
{
"type": "object",
"name": "enterprise",
"in": "body",
"description": "<p>An enterprise on GitHub.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "installation",
"in": "body",
"description": "<p>The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "organization",
"in": "body",
"description": "<p>A GitHub organization.</p>",
"childParamsGroups": []
},
{
"type": "object",
"name": "repository",
"in": "body",
"description": "<p>A repository on GitHub.</p>",
"isRequired": true,
"childParamsGroups": []
},
{
"type": "object",
"name": "sender",
"in": "body",
"description": "<p>A GitHub user.</p>",
"isRequired": true,
"childParamsGroups": []
}
],
"availability": [
"repository",
"organization"
],
"action": "resolve",
"category": "repository_vulnerability_alert"
}
},
"secret_scanning_alert": {
"reopened": {
"category": "secret_scanning_alert",

View File

@@ -25,6 +25,7 @@ const MAX_SIZE = 50 // How much you return has a strong impact on performance
const DEFAULT_PAGE = 1
const POSSIBLE_SORTS = ['best', 'relevance']
const DEFAULT_SORT = POSSIBLE_SORTS[0]
const MAX_PAGE = 10
// If someone searches for `...&version=3.5` what they actually mean
// is `ghes-3.5`. This is because of legacy formatting with the old search.
@@ -185,7 +186,7 @@ const validationMiddleware = (req, res, next) => {
key: 'page',
default_: DEFAULT_PAGE,
cast: (v) => parseInt(v, 10),
validate: (v) => v >= 1 && v <= 10,
validate: (v) => v >= 1 && v <= MAX_PAGE,
},
{ key: 'sort', default_: DEFAULT_SORT, validate: (v) => POSSIBLE_SORTS.includes(v) },
{