Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: new dismissal_approved_by key on code_scanning_alert.closed_by_user event, add GHES 3.16 #113

Merged
merged 1 commit into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
233 changes: 220 additions & 13 deletions cache/api.github.com.json
Original file line number Diff line number Diff line change
Expand Up @@ -22845,6 +22845,10 @@
"multi_repo": {
"type": ["boolean", "null"],
"description": "Whether the detected secret was found in multiple repositories in the same organization or enterprise."
},
"is_base64_encoded": {
"type": ["boolean", "null"],
"description": "A boolean value representing whether or not alert is base64 encoded"
}
}
},
Expand Down Expand Up @@ -25849,7 +25853,13 @@
"most_recent_instance": {
"$ref": "#/components/schemas/code-scanning-alert-instance"
},
"repository": { "$ref": "#/components/schemas/simple-repository" }
"repository": { "$ref": "#/components/schemas/simple-repository" },
"dismissal_approved_by": {
"anyOf": [
{ "type": "null" },
{ "$ref": "#/components/schemas/simple-user" }
]
}
},
"required": [
"number",
Expand Down Expand Up @@ -26208,8 +26218,8 @@
},
"required": ["key_id", "key"]
},
"copilot-seat-breakdown": {
"title": "Copilot Business Seat Breakdown",
"copilot-organization-seat-breakdown": {
"title": "Copilot Seat Breakdown",
"description": "The breakdown of Copilot Business seats for the organization.",
"type": "object",
"properties": {
Expand All @@ -26227,7 +26237,7 @@
},
"pending_invitation": {
"type": "integer",
"description": "The number of seats that have been assigned to users that have not yet accepted an invitation to this organization."
"description": "The number of users who have been invited to receive a Copilot seat through this organization."
},
"active_this_cycle": {
"type": "integer",
Expand All @@ -26245,26 +26255,26 @@
"type": "object",
"properties": {
"seat_breakdown": {
"$ref": "#/components/schemas/copilot-seat-breakdown"
"$ref": "#/components/schemas/copilot-organization-seat-breakdown"
},
"public_code_suggestions": {
"type": "string",
"description": "The organization policy for allowing or disallowing Copilot to make suggestions that match public code.",
"enum": ["allow", "block", "unconfigured", "unknown"]
"description": "The organization policy for allowing or blocking suggestions matching public code (duplication detection filter).",
"enum": ["allow", "block", "unconfigured"]
},
"ide_chat": {
"type": "string",
"description": "The organization policy for allowing or disallowing organization members to use Copilot Chat within their editor.",
"description": "The organization policy for allowing or disallowing Copilot Chat in the IDE.",
"enum": ["enabled", "disabled", "unconfigured"]
},
"platform_chat": {
"type": "string",
"description": "The organization policy for allowing or disallowing organization members to use Copilot features within github.com.",
"description": "The organization policy for allowing or disallowing Copilot features on GitHub.com.",
"enum": ["enabled", "disabled", "unconfigured"]
},
"cli": {
"type": "string",
"description": "The organization policy for allowing or disallowing organization members to use Copilot within their CLI.",
"description": "The organization policy for allowing or disallowing Copilot in the CLI.",
"enum": ["enabled", "disabled", "unconfigured"]
},
"seat_management_setting": {
Expand All @@ -26280,7 +26290,7 @@
"plan_type": {
"type": "string",
"description": "The Copilot plan of the organization, or the parent enterprise, when applicable.",
"enum": ["business", "enterprise", "unknown"]
"enum": ["business", "enterprise"]
}
},
"required": [
Expand Down Expand Up @@ -29811,6 +29821,42 @@
}
}
},
"ruleset-version": {
"title": "Ruleset version",
"type": "object",
"description": "The historical version of a ruleset",
"required": ["version_id", "actor", "updated_at"],
"properties": {
"version_id": {
"type": "integer",
"description": "The ID of the previous version of the ruleset"
},
"actor": {
"type": "object",
"description": "The actor who updated the ruleset",
"properties": {
"id": { "type": "integer" },
"type": { "type": "string" }
}
},
"updated_at": { "type": "string", "format": "date-time" }
}
},
"ruleset-version-with-state": {
"allOf": [
{ "$ref": "#/components/schemas/ruleset-version" },
{
"type": "object",
"required": ["state"],
"properties": {
"state": {
"type": "object",
"description": "The state of the ruleset version"
}
}
}
]
},
"repository-advisory-vulnerability": {
"description": "A product affected by the vulnerability detailed in a repository security advisory.",
"type": "object",
Expand Down Expand Up @@ -31652,6 +31698,13 @@
"created_at": { "type": ["string", "null"], "format": "date-time" },
"expires_at": { "type": ["string", "null"], "format": "date-time" },
"updated_at": { "type": ["string", "null"], "format": "date-time" },
"digest": {
"type": ["string", "null"],
"description": "The SHA256 digest of the artifact. This field will only be populated on artifacts uploaded with upload-artifact v4 or newer. For older versions, this field will be null.",
"examples": [
"sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c"
]
},
"workflow_run": {
"type": ["object", "null"],
"properties": {
Expand Down Expand Up @@ -34158,6 +34211,12 @@
},
"most_recent_instance": {
"$ref": "#/components/schemas/code-scanning-alert-instance"
},
"dismissal_approved_by": {
"anyOf": [
{ "type": "null" },
{ "$ref": "#/components/schemas/simple-user" }
]
}
},
"required": [
Expand Down Expand Up @@ -34251,6 +34310,12 @@
},
"most_recent_instance": {
"$ref": "#/components/schemas/code-scanning-alert-instance"
},
"dismissal_approved_by": {
"anyOf": [
{ "type": "null" },
{ "$ref": "#/components/schemas/simple-user" }
]
}
},
"required": [
Expand Down Expand Up @@ -40429,6 +40494,10 @@
"multi_repo": {
"type": ["boolean", "null"],
"description": "Whether the detected secret was found in multiple repositories under the same organization or enterprise."
},
"is_base64_encoded": {
"type": ["boolean", "null"],
"description": "A boolean value representing whether or not alert is base64 encoded"
}
}
},
Expand Down Expand Up @@ -52062,7 +52131,42 @@
},
"required": ["name", "version"]
},
"url": { "type": "string", "format": "uri" }
"url": { "type": "string", "format": "uri" },
"dismissal_approved_by": {
"title": "User",
"type": ["object", "null"],
"properties": {
"avatar_url": { "type": "string", "format": "uri" },
"deleted": { "type": "boolean" },
"email": { "type": ["string", "null"] },
"events_url": { "type": "string", "format": "uri-template" },
"followers_url": { "type": "string", "format": "uri" },
"following_url": {
"type": "string",
"format": "uri-template"
},
"gists_url": { "type": "string", "format": "uri-template" },
"gravatar_id": { "type": "string" },
"html_url": { "type": "string", "format": "uri" },
"id": { "type": "integer" },
"login": { "type": "string" },
"name": { "type": "string" },
"node_id": { "type": "string" },
"organizations_url": { "type": "string", "format": "uri" },
"received_events_url": { "type": "string", "format": "uri" },
"repos_url": { "type": "string", "format": "uri" },
"site_admin": { "type": "boolean" },
"starred_url": { "type": "string", "format": "uri-template" },
"subscriptions_url": { "type": "string", "format": "uri" },
"type": {
"type": "string",
"enum": ["Bot", "User", "Organization"]
},
"url": { "type": "string", "format": "uri" },
"user_view_type": { "type": "string" }
},
"required": ["login", "id"]
}
},
"required": [
"number",
Expand Down Expand Up @@ -52238,7 +52342,8 @@
"required": ["name", "version"]
},
"updated_at": { "type": ["string", "null"] },
"url": { "type": "string", "format": "uri" }
"url": { "type": "string", "format": "uri" },
"dismissal_approved_by": { "type": ["null"] }
},
"required": [
"number",
Expand Down Expand Up @@ -135166,6 +135271,69 @@
]
}
},
"ruleset-history": {
"value": [
{
"version_id": 3,
"actor": { "id": 1, "type": "User" },
"updated_at": "2024-010-23T16:29:47Z"
},
{
"version_id": 2,
"actor": { "id": 2, "type": "User" },
"updated_at": "2024-09-23T16:29:47Z"
},
{
"version_id": 1,
"actor": { "id": 1, "type": "User" },
"updated_at": "2024-08-23T16:29:47Z"
}
]
},
"org-ruleset-version-with-state": {
"value": [
{
"version_id": 3,
"actor": { "id": 1, "type": "User" },
"updated_at": "2024-010-23T16:29:47Z",
"state": {
"id": 21,
"name": "super cool ruleset",
"target": "branch",
"source_type": "Organization",
"source": "my-org",
"enforcement": "active",
"bypass_actors": [
{
"actor_id": 234,
"actor_type": "Team",
"bypass_mode": "always"
}
],
"conditions": {
"ref_name": {
"include": ["refs/heads/main", "refs/heads/master"],
"exclude": ["refs/heads/dev*"]
},
"repository_name": {
"include": [
"important_repository",
"another_important_repository"
],
"exclude": ["unimportant_repository"],
"protected": true
}
},
"rules": [
{
"type": "commit_author_email_pattern",
"parameters": { "operator": "contains", "pattern": "github" }
}
]
}
}
]
},
"list-repository-advisories": {
"value": [
{
Expand Down Expand Up @@ -137005,6 +137173,7 @@
"created_at": "2020-01-10T14:59:22Z",
"expires_at": "2020-03-21T14:59:22Z",
"updated_at": "2020-02-21T14:59:22Z",
"digest": "sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c",
"workflow_run": {
"id": 2332938,
"repository_id": 1296269,
Expand All @@ -137024,6 +137193,7 @@
"created_at": "2020-01-10T14:59:22Z",
"expires_at": "2020-03-21T14:59:22Z",
"updated_at": "2020-02-21T14:59:22Z",
"digest": "sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c",
"workflow_run": {
"id": 2332942,
"repository_id": 1296269,
Expand All @@ -137047,6 +137217,7 @@
"created_at": "2020-01-10T14:59:22Z",
"expires_at": "2020-01-21T14:59:22Z",
"updated_at": "2020-01-21T14:59:22Z",
"digest": "sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c",
"workflow_run": {
"id": 2332938,
"repository_id": 1296269,
Expand Down Expand Up @@ -148575,6 +148746,42 @@
"updated_at": "2023-08-23T16:29:47Z"
}
},
"repository-ruleset-version-with-state": {
"value": [
{
"version_id": 3,
"actor": { "id": 1, "type": "User" },
"updated_at": "2024-010-23T16:29:47Z",
"state": {
"id": 42,
"name": "super cool ruleset",
"target": "branch",
"source_type": "Repository",
"source": "monalisa/my-repo",
"enforcement": "active",
"bypass_actors": [
{
"actor_id": 234,
"actor_type": "Team",
"bypass_mode": "always"
}
],
"conditions": {
"ref_name": {
"include": ["refs/heads/main", "refs/heads/master"],
"exclude": ["refs/heads/dev*"]
}
},
"rules": [
{
"type": "commit_author_email_pattern",
"parameters": { "operator": "contains", "pattern": "github" }
}
]
}
}
]
},
"secret-scanning-alert-list": {
"value": [
{
Expand Down
Loading