Skip to content

Commit

Permalink
WIP: schema updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Octokit Bot committed Mar 19, 2024
1 parent 0509599 commit d197c7b
Show file tree
Hide file tree
Showing 11 changed files with 416 additions and 12 deletions.
83 changes: 81 additions & 2 deletions cache/api.github.com.json
Original file line number Diff line number Diff line change
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 @@ -156784,6 +156849,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
83 changes: 81 additions & 2 deletions cache/ghec.json
Original file line number Diff line number Diff line change
Expand Up @@ -39194,6 +39194,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 @@ -39366,6 +39428,7 @@
"type": "string",
"enum": [
"commit",
"wiki_commit",
"issue_title",
"issue_body",
"issue_comment",
Expand All @@ -39386,6 +39449,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 @@ -39421,8 +39487,7 @@
}
]
}
},
"required": ["type", "details"]
}
},
"repository-advisory-create": {
"type": "object",
Expand Down Expand Up @@ -159398,6 +159463,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
14 changes: 14 additions & 0 deletions cache/ghes-3.10.json
Original file line number Diff line number Diff line change
Expand Up @@ -149066,6 +149066,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
14 changes: 14 additions & 0 deletions cache/ghes-3.11.json
Original file line number Diff line number Diff line change
Expand Up @@ -151136,6 +151136,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
14 changes: 14 additions & 0 deletions cache/ghes-3.12.json
Original file line number Diff line number Diff line change
Expand Up @@ -152304,6 +152304,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
14 changes: 14 additions & 0 deletions cache/ghes-3.8.json
Original file line number Diff line number Diff line change
Expand Up @@ -145864,6 +145864,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
14 changes: 14 additions & 0 deletions cache/ghes-3.9.json
Original file line number Diff line number Diff line change
Expand Up @@ -147723,6 +147723,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
27 changes: 25 additions & 2 deletions packages/openapi-webhooks-types-ghec/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61692,8 +61692,9 @@ export interface components {
* @description The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found.
* @enum {string}
*/
type:
type?:
| "commit"
| "wiki_commit"
| "issue_title"
| "issue_body"
| "issue_comment"
Expand All @@ -61705,8 +61706,9 @@ export interface components {
| "pull_request_comment"
| "pull_request_review"
| "pull_request_review_comment";
details:
details?:
| components["schemas"]["secret-scanning-location-commit"]
| components["schemas"]["secret-scanning-location-wiki-commit"]
| components["schemas"]["secret-scanning-location-issue-title"]
| components["schemas"]["secret-scanning-location-issue-body"]
| components["schemas"]["secret-scanning-location-issue-comment"]
Expand Down Expand Up @@ -61740,6 +61742,27 @@ export interface components {
/** @description The API URL to get the associated commit resource */
commit_url: string;
};
/** @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. */
"secret-scanning-location-wiki-commit": {
/** @description The file path of the wiki page */
path: string;
/** @description Line number at which the secret starts in the file */
start_line: number;
/** @description Line number at which the secret ends in the file */
end_line: number;
/** @description The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII. */
start_column: number;
/** @description The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII. */
end_column: number;
/** @description SHA-1 hash ID of the associated blob */
blob_sha: string;
/** @description The GitHub URL to get the associated wiki page */
page_url: string;
/** @description SHA-1 hash ID of the associated commit */
commit_sha: string;
/** @description The GitHub URL to get the associated wiki commit */
commit_url: string;
};
/** @description Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue. */
"secret-scanning-location-issue-title": {
/**
Expand Down
Loading

0 comments on commit d197c7b

Please sign in to comment.