Skip to content

Commit

Permalink
feat: adds secret-scanning-location-wiki-commit w/required fields [pa…
Browse files Browse the repository at this point in the history
…th, 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
  • Loading branch information
nickfloyd committed Apr 1, 2024
2 parents 0509599 + 69c1877 commit a335817
Show file tree
Hide file tree
Showing 21 changed files with 651 additions and 146 deletions.
121 changes: 106 additions & 15 deletions cache/api.github.com.json
Expand Up @@ -14836,8 +14836,7 @@
},
"repository-dispatch-sample.collected": {
"post": {
"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.",
"description": "The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body.",
"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.",
"operationId": "repository-dispatch/sample.collected",
"externalDocs": {
"url": "https://docs.github.com/webhooks/webhook-events-and-payloads#repository_dispatch"
Expand Down Expand Up @@ -27182,17 +27181,17 @@
}
}
},
"repository-rule-params-thresholds": {
"title": "Thresholds",
"description": "This setting will not take effect unless at least one code scanning status check is enabled.",
"repository-rule-params-code-scanning-threshold": {
"title": "CodeScanningThreshold",
"description": "A tool and its thresholds.",
"type": "object",
"properties": {
"code_scanning_alert_threshold": {
"alerts": {
"type": "string",
"description": "Code scanning alert threshold",
"enum": ["none", "errors", "errors_and_warnings", "all"]
},
"code_scanning_security_alert_threshold": {
"security_alerts": {
"type": "string",
"description": "Code scanning security alert threshold.",
"enum": [
Expand All @@ -27202,12 +27201,13 @@
"medium_or_higher",
"all"
]
},
"tool": {
"type": "string",
"description": "The name of a code scanning tool"
}
},
"required": [
"code_scanning_alert_threshold",
"code_scanning_security_alert_threshold"
]
"required": ["alerts", "security_alerts", "tool"]
},
"repository-rule": {
"title": "Repository Rule",
Expand Down Expand Up @@ -38147,6 +38147,68 @@
"commit_url"
]
},
"secret-scanning-location-wiki-commit": {
"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.",
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "The file path of the wiki page",
"examples": ["/example/Home.md"]
},
"start_line": {
"type": "number",
"description": "Line number at which the secret starts in the file"
},
"end_line": {
"type": "number",
"description": "Line number at which the secret ends in the file"
},
"start_column": {
"type": "number",
"description": "The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII."
},
"end_column": {
"type": "number",
"description": "The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII."
},
"blob_sha": {
"type": "string",
"description": "SHA-1 hash ID of the associated blob",
"examples": ["af5626b4a114abcb82d63db7c8082c3c4756e51b"]
},
"page_url": {
"type": "string",
"description": "The GitHub URL to get the associated wiki page",
"examples": [
"https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
]
},
"commit_sha": {
"type": "string",
"description": "SHA-1 hash ID of the associated commit",
"examples": ["302c0b7e200761c9dd9b57e57db540ee0b4293a5"]
},
"commit_url": {
"type": "string",
"description": "The GitHub URL to get the associated wiki commit",
"examples": [
"https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
]
}
},
"required": [
"path",
"start_line",
"end_line",
"start_column",
"end_column",
"blob_sha",
"page_url",
"commit_sha",
"commit_url"
]
},
"secret-scanning-location-issue-title": {
"description": "Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue.",
"type": "object",
Expand Down Expand Up @@ -38319,6 +38381,7 @@
"type": "string",
"enum": [
"commit",
"wiki_commit",
"issue_title",
"issue_body",
"issue_comment",
Expand All @@ -38339,6 +38402,9 @@
{
"$ref": "#/components/schemas/secret-scanning-location-commit"
},
{
"$ref": "#/components/schemas/secret-scanning-location-wiki-commit"
},
{
"$ref": "#/components/schemas/secret-scanning-location-issue-title"
},
Expand Down Expand Up @@ -38374,8 +38440,7 @@
}
]
}
},
"required": ["type", "details"]
}
},
"repository-advisory-create": {
"type": "object",
Expand Down Expand Up @@ -126547,11 +126612,15 @@
"title": "repository_dispatch event",
"type": "object",
"properties": {
"action": { "type": "string", "enum": ["sample.collected"] },
"action": {
"type": "string",
"description": "The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body."
},
"branch": { "type": "string" },
"client_payload": {
"type": ["object", "null"],
"additionalProperties": true
"additionalProperties": true,
"description": "The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body."
},
"enterprise": { "$ref": "#/components/schemas/enterprise-webhooks" },
"installation": {
Expand Down Expand Up @@ -156784,6 +156853,20 @@
"commit_url": "https://api.github.com/repos/octocat/hello-world/git/commits/f14d7debf9775f957cf4f1e8176da0786431f72b"
}
},
{
"type": "wiki_commit",
"details": {
"path": "/example/Home.md",
"start_line": 1,
"end_line": 1,
"start_column": 1,
"end_column": 64,
"blob_sha": "af5626b4a114abcb82d63db7c8082c3c4756e51b",
"page_url": "https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5",
"commit_sha": "302c0b7e200761c9dd9b57e57db540ee0b4293a5",
"commit_url": "https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5"
}
},
{
"type": "issue_title",
"details": {
Expand Down Expand Up @@ -164431,6 +164514,14 @@
"schema": { "$ref": "#/components/schemas/basic-error" }
}
}
},
"unacceptable": {
"description": "Unacceptable",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/basic-error" }
}
}
}
},
"headers": {
Expand Down

0 comments on commit a335817

Please sign in to comment.