Skip to content

Commit a335817

Browse files
authored
feat: adds secret-scanning-location-wiki-commit w/required fields [path, start_line, end_line, start_column, end_column, blob_sha, page_url, commit_sha, commit_url], adds wiki_commit to secret-scanning-location-issue-title (potential BREAKING CHANGE due to required fields), adds advanced_security_enabled_for_new_user_namespace_repositories to repository.dispatch sample collected event
2 parents 0509599 + 69c1877 commit a335817

File tree

21 files changed

+651
-146
lines changed

21 files changed

+651
-146
lines changed

cache/api.github.com.json

Lines changed: 106 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14836,8 +14836,7 @@
1483614836
},
1483714837
"repository-dispatch-sample.collected": {
1483814838
"post": {
14839-
"summary": "This event occurs when a GitHub App sends a `POST` request to `/repos/{owner}/{repo}/dispatches`. For more information, see [the REST API documentation for creating a repository dispatch event](https://docs.github.com/rest/repos/repos#create-a-repository-dispatch-event).\n\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.",
14840-
"description": "The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body.",
14839+
"summary": "This event occurs when a GitHub App sends a `POST` request to `/repos/{owner}/{repo}/dispatches`. For more information, see [the REST API documentation for creating a repository dispatch event](https://docs.github.com/rest/repos/repos#create-a-repository-dispatch-event). In the payload, the `action` will be the `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body.\n\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.",
1484114840
"operationId": "repository-dispatch/sample.collected",
1484214841
"externalDocs": {
1484314842
"url": "https://docs.github.com/webhooks/webhook-events-and-payloads#repository_dispatch"
@@ -27182,17 +27181,17 @@
2718227181
}
2718327182
}
2718427183
},
27185-
"repository-rule-params-thresholds": {
27186-
"title": "Thresholds",
27187-
"description": "This setting will not take effect unless at least one code scanning status check is enabled.",
27184+
"repository-rule-params-code-scanning-threshold": {
27185+
"title": "CodeScanningThreshold",
27186+
"description": "A tool and its thresholds.",
2718827187
"type": "object",
2718927188
"properties": {
27190-
"code_scanning_alert_threshold": {
27189+
"alerts": {
2719127190
"type": "string",
2719227191
"description": "Code scanning alert threshold",
2719327192
"enum": ["none", "errors", "errors_and_warnings", "all"]
2719427193
},
27195-
"code_scanning_security_alert_threshold": {
27194+
"security_alerts": {
2719627195
"type": "string",
2719727196
"description": "Code scanning security alert threshold.",
2719827197
"enum": [
@@ -27202,12 +27201,13 @@
2720227201
"medium_or_higher",
2720327202
"all"
2720427203
]
27204+
},
27205+
"tool": {
27206+
"type": "string",
27207+
"description": "The name of a code scanning tool"
2720527208
}
2720627209
},
27207-
"required": [
27208-
"code_scanning_alert_threshold",
27209-
"code_scanning_security_alert_threshold"
27210-
]
27210+
"required": ["alerts", "security_alerts", "tool"]
2721127211
},
2721227212
"repository-rule": {
2721327213
"title": "Repository Rule",
@@ -38147,6 +38147,68 @@
3814738147
"commit_url"
3814838148
]
3814938149
},
38150+
"secret-scanning-location-wiki-commit": {
38151+
"description": "Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki.",
38152+
"type": "object",
38153+
"properties": {
38154+
"path": {
38155+
"type": "string",
38156+
"description": "The file path of the wiki page",
38157+
"examples": ["/example/Home.md"]
38158+
},
38159+
"start_line": {
38160+
"type": "number",
38161+
"description": "Line number at which the secret starts in the file"
38162+
},
38163+
"end_line": {
38164+
"type": "number",
38165+
"description": "Line number at which the secret ends in the file"
38166+
},
38167+
"start_column": {
38168+
"type": "number",
38169+
"description": "The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII."
38170+
},
38171+
"end_column": {
38172+
"type": "number",
38173+
"description": "The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII."
38174+
},
38175+
"blob_sha": {
38176+
"type": "string",
38177+
"description": "SHA-1 hash ID of the associated blob",
38178+
"examples": ["af5626b4a114abcb82d63db7c8082c3c4756e51b"]
38179+
},
38180+
"page_url": {
38181+
"type": "string",
38182+
"description": "The GitHub URL to get the associated wiki page",
38183+
"examples": [
38184+
"https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
38185+
]
38186+
},
38187+
"commit_sha": {
38188+
"type": "string",
38189+
"description": "SHA-1 hash ID of the associated commit",
38190+
"examples": ["302c0b7e200761c9dd9b57e57db540ee0b4293a5"]
38191+
},
38192+
"commit_url": {
38193+
"type": "string",
38194+
"description": "The GitHub URL to get the associated wiki commit",
38195+
"examples": [
38196+
"https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
38197+
]
38198+
}
38199+
},
38200+
"required": [
38201+
"path",
38202+
"start_line",
38203+
"end_line",
38204+
"start_column",
38205+
"end_column",
38206+
"blob_sha",
38207+
"page_url",
38208+
"commit_sha",
38209+
"commit_url"
38210+
]
38211+
},
3815038212
"secret-scanning-location-issue-title": {
3815138213
"description": "Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue.",
3815238214
"type": "object",
@@ -38319,6 +38381,7 @@
3831938381
"type": "string",
3832038382
"enum": [
3832138383
"commit",
38384+
"wiki_commit",
3832238385
"issue_title",
3832338386
"issue_body",
3832438387
"issue_comment",
@@ -38339,6 +38402,9 @@
3833938402
{
3834038403
"$ref": "#/components/schemas/secret-scanning-location-commit"
3834138404
},
38405+
{
38406+
"$ref": "#/components/schemas/secret-scanning-location-wiki-commit"
38407+
},
3834238408
{
3834338409
"$ref": "#/components/schemas/secret-scanning-location-issue-title"
3834438410
},
@@ -38374,8 +38440,7 @@
3837438440
}
3837538441
]
3837638442
}
38377-
},
38378-
"required": ["type", "details"]
38443+
}
3837938444
},
3838038445
"repository-advisory-create": {
3838138446
"type": "object",
@@ -126547,11 +126612,15 @@
126547126612
"title": "repository_dispatch event",
126548126613
"type": "object",
126549126614
"properties": {
126550-
"action": { "type": "string", "enum": ["sample.collected"] },
126615+
"action": {
126616+
"type": "string",
126617+
"description": "The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body."
126618+
},
126551126619
"branch": { "type": "string" },
126552126620
"client_payload": {
126553126621
"type": ["object", "null"],
126554-
"additionalProperties": true
126622+
"additionalProperties": true,
126623+
"description": "The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body."
126555126624
},
126556126625
"enterprise": { "$ref": "#/components/schemas/enterprise-webhooks" },
126557126626
"installation": {
@@ -156784,6 +156853,20 @@
156784156853
"commit_url": "https://api.github.com/repos/octocat/hello-world/git/commits/f14d7debf9775f957cf4f1e8176da0786431f72b"
156785156854
}
156786156855
},
156856+
{
156857+
"type": "wiki_commit",
156858+
"details": {
156859+
"path": "/example/Home.md",
156860+
"start_line": 1,
156861+
"end_line": 1,
156862+
"start_column": 1,
156863+
"end_column": 64,
156864+
"blob_sha": "af5626b4a114abcb82d63db7c8082c3c4756e51b",
156865+
"page_url": "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5",
156866+
"commit_sha": "302c0b7e200761c9dd9b57e57db540ee0b4293a5",
156867+
"commit_url": "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
156868+
}
156869+
},
156787156870
{
156788156871
"type": "issue_title",
156789156872
"details": {
@@ -164431,6 +164514,14 @@
164431164514
"schema": { "$ref": "#/components/schemas/basic-error" }
164432164515
}
164433164516
}
164517+
},
164518+
"unacceptable": {
164519+
"description": "Unacceptable",
164520+
"content": {
164521+
"application/json": {
164522+
"schema": { "$ref": "#/components/schemas/basic-error" }
164523+
}
164524+
}
164434164525
}
164435164526
},
164436164527
"headers": {

0 commit comments

Comments
 (0)