From dfd99a1316a10458c6913f2c63f8364abb4228ac Mon Sep 17 00:00:00 2001
From: docubot <67483024+docubot@users.noreply.github.com>
Date: Mon, 1 May 2023 01:01:06 -0700
Subject: [PATCH] Update OpenAPI Description (#36727)
---
src/github-apps/lib/config.json | 2 +-
src/rest/data/fpt-2022-11-28/schema.json | 11 +-
src/rest/data/ghae/schema.json | 1551 ++++++++++++++++++-
src/rest/data/ghec-2022-11-28/schema.json | 55 +-
src/rest/data/ghes-3.4/schema.json | 1597 ++++++++++++++++++-
src/rest/data/ghes-3.5/schema.json | 1685 ++++++++++++++++++++-
src/rest/data/ghes-3.6/schema.json | 1685 ++++++++++++++++++++-
src/rest/data/ghes-3.7/schema.json | 1685 ++++++++++++++++++++-
src/rest/data/ghes-3.8/schema.json | 55 +-
src/rest/lib/config.json | 2 +-
src/webhooks/data/ghae/schema.json | 220 +++
src/webhooks/data/ghes-3.7/schema.json | 220 +++
src/webhooks/lib/config.json | 2 +-
13 files changed, 8691 insertions(+), 79 deletions(-)
diff --git a/src/github-apps/lib/config.json b/src/github-apps/lib/config.json
index b504511371..09cb2ba196 100644
--- a/src/github-apps/lib/config.json
+++ b/src/github-apps/lib/config.json
@@ -1,3 +1,3 @@
{
- "sha": "33009d5bedd3e4442a73458f81b97597e61ba3b0"
+ "sha": "4f01b320bd0b43272b52c0d70cfc69f10cebc977"
}
\ No newline at end of file
diff --git a/src/rest/data/fpt-2022-11-28/schema.json b/src/rest/data/fpt-2022-11-28/schema.json
index e43e2b4581..372967fb23 100644
--- a/src/rest/data/fpt-2022-11-28/schema.json
+++ b/src/rest/data/fpt-2022-11-28/schema.json
@@ -258773,12 +258773,6 @@
"in": "body",
"description": "
The SHA1 value for this reference.
",
"isRequired": true
- },
- {
- "type": "string",
- "name": "key",
- "in": "body",
- "description": ""
}
],
"enabledForGitHubApps": true,
@@ -338401,7 +338395,7 @@
}
],
"previews": [],
- "descriptionHTML": "Returns the total commit counts for the owner and total commit counts in all. all is everyone combined, including the owner in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract owner from all.
\nThe array order is oldest week (index 0) to most recent week.
",
+ "descriptionHTML": "Returns the total commit counts for the owner and total commit counts in all. all is everyone combined, including the owner in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract owner from all.
\nThe array order is oldest week (index 0) to most recent week.
\nThe most recent week is seven days ago at UTC midnight to today at UTC midnight.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -417224,8 +417218,7 @@
"type": "integer",
"name": "line",
"in": "body",
- "description": "The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.
",
- "isRequired": true
+ "description": "Required unless using subject_type:file. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.
"
},
{
"type": "integer",
diff --git a/src/rest/data/ghae/schema.json b/src/rest/data/ghae/schema.json
index 5f2ced789e..3b7a7dbce9 100644
--- a/src/rest/data/ghae/schema.json
+++ b/src/rest/data/ghae/schema.json
@@ -5463,6 +5463,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -22337,6 +22381,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -23083,6 +23171,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -24900,6 +25032,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -25646,6 +25822,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -27535,6 +27755,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -28281,6 +28545,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -30798,6 +31106,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -31544,6 +31896,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -45509,6 +45905,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -46548,6 +46988,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -47950,6 +48434,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -56810,6 +57338,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -57752,6 +58324,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -104329,6 +104945,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -106032,6 +106692,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -107251,6 +107955,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -108891,6 +109639,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -110647,6 +111439,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -116806,6 +117642,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -118536,6 +119416,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -119887,6 +120811,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -121273,6 +122241,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -135037,6 +136049,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -167300,12 +168356,6 @@
"in": "body",
"description": "The SHA1 value for this reference.
",
"isRequired": true
- },
- {
- "type": "string",
- "name": "key",
- "in": "body",
- "description": ""
}
],
"enabledForGitHubApps": true,
@@ -244635,7 +245685,7 @@
}
],
"previews": [],
- "descriptionHTML": "Returns the total commit counts for the owner and total commit counts in all. all is everyone combined, including the owner in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract owner from all.
\nThe array order is oldest week (index 0) to most recent week.
",
+ "descriptionHTML": "Returns the total commit counts for the owner and total commit counts in all. all is everyone combined, including the owner in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract owner from all.
\nThe array order is oldest week (index 0) to most recent week.
\nThe most recent week is seven days ago at UTC midnight to today at UTC midnight.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -251542,6 +252592,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -256336,6 +257430,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -294260,8 +295398,7 @@
"type": "integer",
"name": "line",
"in": "body",
- "description": "The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.
",
- "isRequired": true
+ "description": "Required unless using subject_type:file. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.
"
},
{
"type": "integer",
@@ -325441,6 +326578,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -333201,6 +334382,50 @@
"internal"
]
},
+ {
+ "type": "object or null",
+ "name": "security_and_analysis",
+ "in": "body",
+ "description": "Specify which security and analysis features to enable or disable for the repository.
\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"Managing security managers in your organization.\"
\nFor example, to enable GitHub Advanced Security, use this data in the body of the PATCH request:\n{ \"security_and_analysis\": {\"advanced_security\": { \"status\": \"enabled\" } } }.
\nYou can check which security and analysis features are currently enabled by using a GET /repos/{owner}/{repo} request.
",
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "advanced_security",
+ "description": "Use the status property to enable or disable GitHub Advanced Security for this repository. For more information, see \"About GitHub Advanced Security.\"
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "Can be enabled or disabled.
"
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning",
+ "description": "Use the status property to enable or disable secret scanning for this repository. For more information, see \"About secret scanning.\"
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "Can be enabled or disabled.
"
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning_push_protection",
+ "description": "Use the status property to enable or disable secret scanning push protection for this repository. For more information, see \"Protecting pushes with secret scanning.\"
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "Can be enabled or disabled.
"
+ }
+ ]
+ }
+ ]
+ },
{
"type": "boolean",
"name": "has_issues",
@@ -341433,6 +342658,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -347419,6 +348688,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -352591,6 +353904,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -359566,6 +360923,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -361000,6 +362401,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -374026,6 +375471,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -381214,6 +382703,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
diff --git a/src/rest/data/ghec-2022-11-28/schema.json b/src/rest/data/ghec-2022-11-28/schema.json
index 1f2c1ac7da..93d1c6b9fd 100644
--- a/src/rest/data/ghec-2022-11-28/schema.json
+++ b/src/rest/data/ghec-2022-11-28/schema.json
@@ -271990,12 +271990,6 @@
"in": "body",
"description": "The SHA1 value for this reference.
",
"isRequired": true
- },
- {
- "type": "string",
- "name": "key",
- "in": "body",
- "description": ""
}
],
"enabledForGitHubApps": true,
@@ -351618,7 +351612,7 @@
}
],
"previews": [],
- "descriptionHTML": "Returns the total commit counts for the owner and total commit counts in all. all is everyone combined, including the owner in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract owner from all.
\nThe array order is oldest week (index 0) to most recent week.
",
+ "descriptionHTML": "Returns the total commit counts for the owner and total commit counts in all. all is everyone combined, including the owner in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract owner from all.
\nThe array order is oldest week (index 0) to most recent week.
\nThe most recent week is seven days ago at UTC midnight to today at UTC midnight.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -433974,8 +433968,7 @@
"type": "integer",
"name": "line",
"in": "body",
- "description": "The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.
",
- "isRequired": true
+ "description": "Required unless using subject_type:file. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.
"
},
{
"type": "integer",
@@ -475188,6 +475181,50 @@
"internal"
]
},
+ {
+ "type": "object or null",
+ "name": "security_and_analysis",
+ "in": "body",
+ "description": "Specify which security and analysis features to enable or disable for the repository.
\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"Managing security managers in your organization.\"
\nFor example, to enable GitHub Advanced Security, use this data in the body of the PATCH request:\n{ \"security_and_analysis\": {\"advanced_security\": { \"status\": \"enabled\" } } }.
\nYou can check which security and analysis features are currently enabled by using a GET /repos/{owner}/{repo} request.
",
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "advanced_security",
+ "description": "Use the status property to enable or disable GitHub Advanced Security for this repository. For more information, see \"About GitHub Advanced Security.\"
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "Can be enabled or disabled.
"
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning",
+ "description": "Use the status property to enable or disable secret scanning for this repository. For more information, see \"About secret scanning.\"
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "Can be enabled or disabled.
"
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning_push_protection",
+ "description": "Use the status property to enable or disable secret scanning push protection for this repository. For more information, see \"Protecting pushes with secret scanning.\"
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "Can be enabled or disabled.
"
+ }
+ ]
+ }
+ ]
+ },
{
"type": "boolean",
"name": "has_issues",
diff --git a/src/rest/data/ghes-3.4/schema.json b/src/rest/data/ghes-3.4/schema.json
index 8a6c7c0672..b621d148da 100644
--- a/src/rest/data/ghes-3.4/schema.json
+++ b/src/rest/data/ghes-3.4/schema.json
@@ -5258,6 +5258,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -9582,6 +9626,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -25373,6 +25461,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -26104,6 +26236,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -27461,6 +27637,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -28192,6 +28412,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -31730,6 +31994,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -32461,6 +32769,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -70006,6 +70358,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -71030,6 +71426,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -72417,6 +72857,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -81231,6 +81715,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -82147,6 +82675,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -131885,6 +132457,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -133573,6 +134189,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -134777,6 +135437,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -136402,6 +137106,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -138143,6 +138891,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -142912,6 +143704,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -144613,6 +145449,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -145949,6 +146829,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -147320,6 +148244,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -161048,6 +162016,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -163203,6 +164215,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -199615,12 +200671,6 @@
"in": "body",
"description": "The SHA1 value for this reference.
",
"isRequired": true
- },
- {
- "type": "string",
- "name": "key",
- "in": "body",
- "description": ""
}
],
"enabledForGitHubApps": true,
@@ -276730,7 +277780,7 @@
}
],
"previews": [],
- "descriptionHTML": "Returns the total commit counts for the owner and total commit counts in all. all is everyone combined, including the owner in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract owner from all.
\nThe array order is oldest week (index 0) to most recent week.
",
+ "descriptionHTML": "Returns the total commit counts for the owner and total commit counts in all. all is everyone combined, including the owner in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract owner from all.
\nThe array order is oldest week (index 0) to most recent week.
\nThe most recent week is seven days ago at UTC midnight to today at UTC midnight.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -283596,6 +284646,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -288354,6 +289448,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -334213,8 +335351,7 @@
"type": "integer",
"name": "line",
"in": "body",
- "description": "The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.
",
- "isRequired": true
+ "description": "Required unless using subject_type:file. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.
"
},
{
"type": "integer",
@@ -366766,6 +367903,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -366822,7 +368003,7 @@
}
],
"previews": [],
- "descriptionHTML": "Lists repositories for the specified organization.
",
+ "descriptionHTML": "Lists repositories for the specified organization.
\nNote: In order to see the security_and_analysis block for a repository you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"Managing security managers in your organization.\"
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -374488,6 +375669,50 @@
"internal"
]
},
+ {
+ "type": "object or null",
+ "name": "security_and_analysis",
+ "in": "body",
+ "description": "Specify which security and analysis features to enable or disable for the repository.
\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"Managing security managers in your organization.\"
\nFor example, to enable GitHub Advanced Security, use this data in the body of the PATCH request:\n{ \"security_and_analysis\": {\"advanced_security\": { \"status\": \"enabled\" } } }.
\nYou can check which security and analysis features are currently enabled by using a GET /repos/{owner}/{repo} request.
",
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "advanced_security",
+ "description": "Use the status property to enable or disable GitHub Advanced Security for this repository. For more information, see \"About GitHub Advanced Security.\"
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "Can be enabled or disabled.
"
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning",
+ "description": "Use the status property to enable or disable secret scanning for this repository. For more information, see \"About secret scanning.\"
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "Can be enabled or disabled.
"
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning_push_protection",
+ "description": "Use the status property to enable or disable secret scanning push protection for this repository. For more information, see \"Protecting pushes with secret scanning.\"
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "Can be enabled or disabled.
"
+ }
+ ]
+ }
+ ]
+ },
{
"type": "boolean",
"name": "has_issues",
@@ -382630,6 +383855,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -385089,6 +386358,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -389450,6 +390763,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -394607,6 +395964,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -401530,6 +402931,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -402949,6 +404394,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -416672,6 +418161,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -423711,6 +425244,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
diff --git a/src/rest/data/ghes-3.5/schema.json b/src/rest/data/ghes-3.5/schema.json
index 7ac695380d..532b24ada4 100644
--- a/src/rest/data/ghes-3.5/schema.json
+++ b/src/rest/data/ghes-3.5/schema.json
@@ -6188,6 +6188,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -10794,6 +10838,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -27561,6 +27649,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -28298,6 +28430,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -30048,6 +30224,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -30785,6 +31005,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -32963,6 +33227,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -33700,6 +34008,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -37368,6 +37720,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -38105,6 +38501,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -75656,6 +76096,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -76686,6 +77170,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -78079,6 +78607,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -86899,6 +87471,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -87821,6 +88437,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -137565,6 +138225,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -139259,6 +139963,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -140469,6 +141217,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -142100,6 +142892,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -143847,6 +144683,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -150028,6 +150908,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -151749,6 +152673,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -153091,6 +154059,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -154468,6 +155480,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -168202,6 +169258,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -170363,6 +171463,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -206775,12 +207919,6 @@
"in": "body",
"description": "The SHA1 value for this reference.
",
"isRequired": true
- },
- {
- "type": "string",
- "name": "key",
- "in": "body",
- "description": ""
}
],
"enabledForGitHubApps": true,
@@ -283890,7 +285028,7 @@
}
],
"previews": [],
- "descriptionHTML": "Returns the total commit counts for the owner and total commit counts in all. all is everyone combined, including the owner in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract owner from all.
\nThe array order is oldest week (index 0) to most recent week.
",
+ "descriptionHTML": "Returns the total commit counts for the owner and total commit counts in all. all is everyone combined, including the owner in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract owner from all.
\nThe array order is oldest week (index 0) to most recent week.
\nThe most recent week is seven days ago at UTC midnight to today at UTC midnight.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -290762,6 +291900,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -295526,6 +296708,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -341385,8 +342611,7 @@
"type": "integer",
"name": "line",
"in": "body",
- "description": "The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.
",
- "isRequired": true
+ "description": "Required unless using subject_type:file. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.
"
},
{
"type": "integer",
@@ -373883,6 +375108,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -373939,7 +375208,7 @@
}
],
"previews": [],
- "descriptionHTML": "Lists repositories for the specified organization.
",
+ "descriptionHTML": "Lists repositories for the specified organization.
\nNote: In order to see the security_and_analysis block for a repository you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"Managing security managers in your organization.\"
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -381605,6 +382874,50 @@
"internal"
]
},
+ {
+ "type": "object or null",
+ "name": "security_and_analysis",
+ "in": "body",
+ "description": "Specify which security and analysis features to enable or disable for the repository.
\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"Managing security managers in your organization.\"
\nFor example, to enable GitHub Advanced Security, use this data in the body of the PATCH request:\n{ \"security_and_analysis\": {\"advanced_security\": { \"status\": \"enabled\" } } }.
\nYou can check which security and analysis features are currently enabled by using a GET /repos/{owner}/{repo} request.
",
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "advanced_security",
+ "description": "Use the status property to enable or disable GitHub Advanced Security for this repository. For more information, see \"About GitHub Advanced Security.\"
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "Can be enabled or disabled.
"
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning",
+ "description": "Use the status property to enable or disable secret scanning for this repository. For more information, see \"About secret scanning.\"
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "Can be enabled or disabled.
"
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning_push_protection",
+ "description": "Use the status property to enable or disable secret scanning push protection for this repository. For more information, see \"Protecting pushes with secret scanning.\"
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "Can be enabled or disabled.
"
+ }
+ ]
+ }
+ ]
+ },
{
"type": "boolean",
"name": "has_issues",
@@ -389921,6 +391234,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -392386,6 +393743,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -396753,6 +398154,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -401916,6 +403361,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -409152,6 +410641,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -410577,6 +412110,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -424328,6 +425905,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -431381,6 +433002,50 @@
},
"allow_forking": {
"type": "boolean"
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
diff --git a/src/rest/data/ghes-3.6/schema.json b/src/rest/data/ghes-3.6/schema.json
index efe8d11e50..c3634b1e61 100644
--- a/src/rest/data/ghes-3.6/schema.json
+++ b/src/rest/data/ghes-3.6/schema.json
@@ -6611,6 +6611,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -11241,6 +11285,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -28547,6 +28635,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -29290,6 +29422,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -31095,6 +31271,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -31838,6 +32058,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -34071,6 +34335,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -34814,6 +35122,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -38537,6 +38889,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -39280,6 +39676,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -77575,6 +78015,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -78611,6 +79095,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -80010,6 +80538,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -89164,6 +89736,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -90092,6 +90708,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -140088,6 +140748,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -141788,6 +142492,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -143004,6 +143752,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -144641,6 +145433,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -146394,6 +147230,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -152627,6 +153507,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -154354,6 +155278,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -155702,6 +156670,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -157085,6 +158097,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -170989,6 +172045,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -173156,6 +174256,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -215110,12 +216254,6 @@
"in": "body",
"description": "The SHA1 value for this reference.
",
"isRequired": true
- },
- {
- "type": "string",
- "name": "key",
- "in": "body",
- "description": ""
}
],
"enabledForGitHubApps": true,
@@ -293209,7 +294347,7 @@
}
],
"previews": [],
- "descriptionHTML": "Returns the total commit counts for the owner and total commit counts in all. all is everyone combined, including the owner in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract owner from all.
\nThe array order is oldest week (index 0) to most recent week.
",
+ "descriptionHTML": "Returns the total commit counts for the owner and total commit counts in all. all is everyone combined, including the owner in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract owner from all.
\nThe array order is oldest week (index 0) to most recent week.
\nThe most recent week is seven days ago at UTC midnight to today at UTC midnight.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -300333,6 +301471,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -305267,6 +306449,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -351329,8 +352555,7 @@
"type": "integer",
"name": "line",
"in": "body",
- "description": "The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.
",
- "isRequired": true
+ "description": "Required unless using subject_type:file. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.
"
},
{
"type": "integer",
@@ -384161,6 +385386,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -384217,7 +385486,7 @@
}
],
"previews": [],
- "descriptionHTML": "Lists repositories for the specified organization.
",
+ "descriptionHTML": "Lists repositories for the specified organization.
\nNote: In order to see the security_and_analysis block for a repository you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"Managing security managers in your organization.\"
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -392269,6 +393538,50 @@
"internal"
]
},
+ {
+ "type": "object or null",
+ "name": "security_and_analysis",
+ "in": "body",
+ "description": "Specify which security and analysis features to enable or disable for the repository.
\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"Managing security managers in your organization.\"
\nFor example, to enable GitHub Advanced Security, use this data in the body of the PATCH request:\n{ \"security_and_analysis\": {\"advanced_security\": { \"status\": \"enabled\" } } }.
\nYou can check which security and analysis features are currently enabled by using a GET /repos/{owner}/{repo} request.
",
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "advanced_security",
+ "description": "Use the status property to enable or disable GitHub Advanced Security for this repository. For more information, see \"About GitHub Advanced Security.\"
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "Can be enabled or disabled.
"
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning",
+ "description": "Use the status property to enable or disable secret scanning for this repository. For more information, see \"About secret scanning.\"
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "Can be enabled or disabled.
"
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning_push_protection",
+ "description": "Use the status property to enable or disable secret scanning push protection for this repository. For more information, see \"Protecting pushes with secret scanning.\"
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "Can be enabled or disabled.
"
+ }
+ ]
+ }
+ ]
+ },
{
"type": "boolean",
"name": "has_issues",
@@ -400904,6 +402217,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -403457,6 +404814,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -407994,6 +409395,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -413163,6 +414608,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -420711,6 +422200,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -422142,6 +423675,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -437012,6 +438589,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -444179,6 +445800,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
diff --git a/src/rest/data/ghes-3.7/schema.json b/src/rest/data/ghes-3.7/schema.json
index 25574fc1f5..a3152ed43c 100644
--- a/src/rest/data/ghes-3.7/schema.json
+++ b/src/rest/data/ghes-3.7/schema.json
@@ -7380,6 +7380,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -12013,6 +12057,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -29379,6 +29467,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -30125,6 +30257,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -31933,6 +32109,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -32679,6 +32899,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -34915,6 +35179,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -35661,6 +35969,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -39396,6 +39748,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -40142,6 +40538,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -78478,6 +78918,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -79517,6 +80001,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -80919,6 +81447,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -90108,6 +90680,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -91039,6 +91655,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -141062,6 +141722,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -142765,6 +143469,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -143984,6 +144732,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -145624,6 +146416,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -147380,6 +148216,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -155050,6 +155930,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -156780,6 +157704,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -158131,6 +159099,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -159517,6 +160529,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -173440,6 +174496,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -175610,6 +176710,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -217941,12 +219085,6 @@
"in": "body",
"description": "The SHA1 value for this reference.
",
"isRequired": true
- },
- {
- "type": "string",
- "name": "key",
- "in": "body",
- "description": ""
}
],
"enabledForGitHubApps": true,
@@ -296136,7 +297274,7 @@
}
],
"previews": [],
- "descriptionHTML": "Returns the total commit counts for the owner and total commit counts in all. all is everyone combined, including the owner in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract owner from all.
\nThe array order is oldest week (index 0) to most recent week.
",
+ "descriptionHTML": "Returns the total commit counts for the owner and total commit counts in all. all is everyone combined, including the owner in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract owner from all.
\nThe array order is oldest week (index 0) to most recent week.
\nThe most recent week is seven days ago at UTC midnight to today at UTC midnight.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -303287,6 +304425,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -308240,6 +309422,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -354961,8 +356187,7 @@
"type": "integer",
"name": "line",
"in": "body",
- "description": "The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.
",
- "isRequired": true
+ "description": "Required unless using subject_type:file. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.
"
},
{
"type": "integer",
@@ -387828,6 +389053,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -387884,7 +389153,7 @@
}
],
"previews": [],
- "descriptionHTML": "Lists repositories for the specified organization.
",
+ "descriptionHTML": "Lists repositories for the specified organization.
\nNote: In order to see the security_and_analysis block for a repository you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"Managing security managers in your organization.\"
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -395974,6 +397243,50 @@
"internal"
]
},
+ {
+ "type": "object or null",
+ "name": "security_and_analysis",
+ "in": "body",
+ "description": "Specify which security and analysis features to enable or disable for the repository.
\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"Managing security managers in your organization.\"
\nFor example, to enable GitHub Advanced Security, use this data in the body of the PATCH request:\n{ \"security_and_analysis\": {\"advanced_security\": { \"status\": \"enabled\" } } }.
\nYou can check which security and analysis features are currently enabled by using a GET /repos/{owner}/{repo} request.
",
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "advanced_security",
+ "description": "Use the status property to enable or disable GitHub Advanced Security for this repository. For more information, see \"About GitHub Advanced Security.\"
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "Can be enabled or disabled.
"
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning",
+ "description": "Use the status property to enable or disable secret scanning for this repository. For more information, see \"About secret scanning.\"
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "Can be enabled or disabled.
"
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning_push_protection",
+ "description": "Use the status property to enable or disable secret scanning push protection for this repository. For more information, see \"Protecting pushes with secret scanning.\"
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "Can be enabled or disabled.
"
+ }
+ ]
+ }
+ ]
+ },
{
"type": "boolean",
"name": "has_issues",
@@ -404649,6 +405962,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -407213,6 +408570,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -411769,6 +413170,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -416968,6 +418413,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -424561,6 +426050,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -425995,6 +427528,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -440915,6 +442492,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
@@ -448093,6 +449714,50 @@
"examples": [
false
]
+ },
+ "security_and_analysis": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "advanced_security": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ },
+ "secret_scanning_push_protection": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ }
+ }
+ }
}
},
"required": [
diff --git a/src/rest/data/ghes-3.8/schema.json b/src/rest/data/ghes-3.8/schema.json
index e16df71a59..045c8f0f5a 100644
--- a/src/rest/data/ghes-3.8/schema.json
+++ b/src/rest/data/ghes-3.8/schema.json
@@ -240100,12 +240100,6 @@
"in": "body",
"description": "The SHA1 value for this reference.
",
"isRequired": true
- },
- {
- "type": "string",
- "name": "key",
- "in": "body",
- "description": ""
}
],
"enabledForGitHubApps": true,
@@ -318295,7 +318289,7 @@
}
],
"previews": [],
- "descriptionHTML": "Returns the total commit counts for the owner and total commit counts in all. all is everyone combined, including the owner in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract owner from all.
\nThe array order is oldest week (index 0) to most recent week.
",
+ "descriptionHTML": "Returns the total commit counts for the owner and total commit counts in all. all is everyone combined, including the owner in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract owner from all.
\nThe array order is oldest week (index 0) to most recent week.
\nThe most recent week is seven days ago at UTC midnight to today at UTC midnight.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -377358,8 +377352,7 @@
"type": "integer",
"name": "line",
"in": "body",
- "description": "The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.
",
- "isRequired": true
+ "description": "Required unless using subject_type:file. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.
"
},
{
"type": "integer",
@@ -418450,6 +418443,50 @@
"internal"
]
},
+ {
+ "type": "object or null",
+ "name": "security_and_analysis",
+ "in": "body",
+ "description": "Specify which security and analysis features to enable or disable for the repository.
\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"Managing security managers in your organization.\"
\nFor example, to enable GitHub Advanced Security, use this data in the body of the PATCH request:\n{ \"security_and_analysis\": {\"advanced_security\": { \"status\": \"enabled\" } } }.
\nYou can check which security and analysis features are currently enabled by using a GET /repos/{owner}/{repo} request.
",
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "advanced_security",
+ "description": "Use the status property to enable or disable GitHub Advanced Security for this repository. For more information, see \"About GitHub Advanced Security.\"
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "Can be enabled or disabled.
"
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning",
+ "description": "Use the status property to enable or disable secret scanning for this repository. For more information, see \"About secret scanning.\"
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "Can be enabled or disabled.
"
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning_push_protection",
+ "description": "Use the status property to enable or disable secret scanning push protection for this repository. For more information, see \"Protecting pushes with secret scanning.\"
",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "Can be enabled or disabled.
"
+ }
+ ]
+ }
+ ]
+ },
{
"type": "boolean",
"name": "has_issues",
diff --git a/src/rest/lib/config.json b/src/rest/lib/config.json
index 9c3ce3232c..e919234673 100644
--- a/src/rest/lib/config.json
+++ b/src/rest/lib/config.json
@@ -30,5 +30,5 @@
]
}
},
- "sha": "33009d5bedd3e4442a73458f81b97597e61ba3b0"
+ "sha": "4f01b320bd0b43272b52c0d70cfc69f10cebc977"
}
\ No newline at end of file
diff --git a/src/webhooks/data/ghae/schema.json b/src/webhooks/data/ghae/schema.json
index 35c4d93bb5..7aaa39616f 100644
--- a/src/webhooks/data/ghae/schema.json
+++ b/src/webhooks/data/ghae/schema.json
@@ -2300,6 +2300,61 @@
"type": "boolean",
"name": "web_commit_signoff_required",
"description": ""
+ },
+ {
+ "type": "object or null",
+ "name": "security_and_analysis",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "advanced_security",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning_push_protection",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ ]
+ }
+ ]
}
]
},
@@ -4350,6 +4405,61 @@
"type": "boolean",
"name": "web_commit_signoff_required",
"description": ""
+ },
+ {
+ "type": "object or null",
+ "name": "security_and_analysis",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "advanced_security",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning_push_protection",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ ]
+ }
+ ]
}
]
},
@@ -6401,6 +6511,61 @@
"type": "boolean",
"name": "web_commit_signoff_required",
"description": ""
+ },
+ {
+ "type": "object or null",
+ "name": "security_and_analysis",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "advanced_security",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning_push_protection",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ ]
+ }
+ ]
}
]
},
@@ -8464,6 +8629,61 @@
"type": "boolean",
"name": "web_commit_signoff_required",
"description": ""
+ },
+ {
+ "type": "object or null",
+ "name": "security_and_analysis",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "advanced_security",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning_push_protection",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ ]
+ }
+ ]
}
]
},
diff --git a/src/webhooks/data/ghes-3.7/schema.json b/src/webhooks/data/ghes-3.7/schema.json
index 614828367e..49c4925d8f 100644
--- a/src/webhooks/data/ghes-3.7/schema.json
+++ b/src/webhooks/data/ghes-3.7/schema.json
@@ -2378,6 +2378,61 @@
"type": "boolean",
"name": "web_commit_signoff_required",
"description": ""
+ },
+ {
+ "type": "object or null",
+ "name": "security_and_analysis",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "advanced_security",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning_push_protection",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ ]
+ }
+ ]
}
]
},
@@ -4428,6 +4483,61 @@
"type": "boolean",
"name": "web_commit_signoff_required",
"description": ""
+ },
+ {
+ "type": "object or null",
+ "name": "security_and_analysis",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "advanced_security",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning_push_protection",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ ]
+ }
+ ]
}
]
},
@@ -6479,6 +6589,61 @@
"type": "boolean",
"name": "web_commit_signoff_required",
"description": ""
+ },
+ {
+ "type": "object or null",
+ "name": "security_and_analysis",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "advanced_security",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning_push_protection",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ ]
+ }
+ ]
}
]
},
@@ -8542,6 +8707,61 @@
"type": "boolean",
"name": "web_commit_signoff_required",
"description": ""
+ },
+ {
+ "type": "object or null",
+ "name": "security_and_analysis",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "object",
+ "name": "advanced_security",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "name": "secret_scanning_push_protection",
+ "description": "",
+ "childParamsGroups": [
+ {
+ "type": "string",
+ "name": "status",
+ "description": "",
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
+ }
+ ]
+ }
+ ]
}
]
},
diff --git a/src/webhooks/lib/config.json b/src/webhooks/lib/config.json
index b504511371..09cb2ba196 100644
--- a/src/webhooks/lib/config.json
+++ b/src/webhooks/lib/config.json
@@ -1,3 +1,3 @@
{
- "sha": "33009d5bedd3e4442a73458f81b97597e61ba3b0"
+ "sha": "4f01b320bd0b43272b52c0d70cfc69f10cebc977"
}
\ No newline at end of file