From 1ae442b7464be97d5a99d297699302b1571954c0 Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Wed, 28 Jun 2023 19:51:21 -0400 Subject: [PATCH 01/15] fix: update events for Apps and webhooks --- .../api.github.com/installation/suspend.payload.json | 1 - .../api.github.com/installation/unsuspend.payload.json | 1 - payload-schemas/api.github.com/common/app.schema.json | 8 +++++--- .../api.github.com/common/installation.schema.json | 3 ++- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/payload-examples/api.github.com/installation/suspend.payload.json b/payload-examples/api.github.com/installation/suspend.payload.json index a61576743..3f74a784f 100644 --- a/payload-examples/api.github.com/installation/suspend.payload.json +++ b/payload-examples/api.github.com/installation/suspend.payload.json @@ -69,7 +69,6 @@ "check_suite", "code_scanning_alert", "commit_comment", - "content_reference", "create", "delete", "deployment", diff --git a/payload-examples/api.github.com/installation/unsuspend.payload.json b/payload-examples/api.github.com/installation/unsuspend.payload.json index 38619dec1..b866315a1 100644 --- a/payload-examples/api.github.com/installation/unsuspend.payload.json +++ b/payload-examples/api.github.com/installation/unsuspend.payload.json @@ -69,7 +69,6 @@ "check_suite", "code_scanning_alert", "commit_comment", - "content_reference", "create", "delete", "deployment", diff --git a/payload-schemas/api.github.com/common/app.schema.json b/payload-schemas/api.github.com/common/app.schema.json index c6fe4f391..3f0f7b9e7 100644 --- a/payload-schemas/api.github.com/common/app.schema.json +++ b/payload-schemas/api.github.com/common/app.schema.json @@ -113,10 +113,11 @@ "check_suite", "code_scanning_alert", "commit_comment", - "content_reference", "create", "delete", + "dependabot_alert", "deployment", + "deployment_protection_rule", "deployment_review", "deployment_status", "deploy_key", @@ -149,6 +150,7 @@ "release", "repository", "repository_dispatch", + "repository_ruleset", "secret_scanning_alert", "secret_scanning_alert_location", "security_and_analysis", @@ -158,8 +160,8 @@ "team_add", "watch", "workflow_dispatch", - "workflow_run", - "workflow_job" + "workflow_job", + "workflow_run" ] } } diff --git a/payload-schemas/api.github.com/common/installation.schema.json b/payload-schemas/api.github.com/common/installation.schema.json index 645103f21..21b79aa46 100644 --- a/payload-schemas/api.github.com/common/installation.schema.json +++ b/payload-schemas/api.github.com/common/installation.schema.json @@ -216,7 +216,6 @@ "check_suite", "code_scanning_alert", "commit_comment", - "content_reference", "create", "delete", "deployment", @@ -232,6 +231,7 @@ "label", "member", "membership", + "merge_group", "merge_queue_entry", "milestone", "organization", @@ -253,6 +253,7 @@ "repository_dispatch", "secret_scanning_alert", "secret_scanning_alert_location", + "security_and_analysis", "star", "status", "team", From a9455e6cef4bd9fbb93181f4b8d97869b396ead8 Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Wed, 28 Jun 2023 19:52:26 -0400 Subject: [PATCH 02/15] fix: mark `fixed_in` as not required for `repository_vulnerability` events --- .../common/repository-vulnerability-alert-alert.schema.json | 1 - .../repository_vulnerability_alert/resolve.schema.json | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/payload-schemas/api.github.com/common/repository-vulnerability-alert-alert.schema.json b/payload-schemas/api.github.com/common/repository-vulnerability-alert-alert.schema.json index a3e4c32ce..2c2dd9431 100644 --- a/payload-schemas/api.github.com/common/repository-vulnerability-alert-alert.schema.json +++ b/payload-schemas/api.github.com/common/repository-vulnerability-alert-alert.schema.json @@ -12,7 +12,6 @@ "severity", "external_reference", "external_identifier", - "fixed_in", "created_at" ], "type": "object", diff --git a/payload-schemas/api.github.com/repository_vulnerability_alert/resolve.schema.json b/payload-schemas/api.github.com/repository_vulnerability_alert/resolve.schema.json index 170d073b1..a91757adc 100644 --- a/payload-schemas/api.github.com/repository_vulnerability_alert/resolve.schema.json +++ b/payload-schemas/api.github.com/repository_vulnerability_alert/resolve.schema.json @@ -10,11 +10,12 @@ { "$ref": "common/repository-vulnerability-alert-alert.schema.json" }, { "type": "object", - "required": ["state", "fixed_at", "fix_reason"], + "required": ["state", "fixed_at", "fix_reason", "fixed_in"], "properties": { "state": { "type": "string", "enum": ["fixed"] }, "fixed_at": { "type": "string", "format": "date-time" }, - "fix_reason": { "type": "string" } + "fix_reason": { "type": "string" }, + "fixed_in": { "type": "string" } }, "tsAdditionalProperties": false } From 06e1342748a183619a8861461c15061e9ea7d29e Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Wed, 28 Jun 2023 19:53:16 -0400 Subject: [PATCH 03/15] feat: new `topics` key for `changes` on `repository.edited` event --- .../api.github.com/repository/edited.schema.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/payload-schemas/api.github.com/repository/edited.schema.json b/payload-schemas/api.github.com/repository/edited.schema.json index 7de15706d..e390667fd 100644 --- a/payload-schemas/api.github.com/repository/edited.schema.json +++ b/payload-schemas/api.github.com/repository/edited.schema.json @@ -25,6 +25,14 @@ "required": ["from"], "properties": { "from": { "type": ["string", "null"] } }, "additionalProperties": false + }, + "topics": { + "type": "object", + "required": ["from"], + "properties": { + "from": { "type": "array", "items": { "type": "string" } } + }, + "additionalProperties": false } }, "additionalProperties": false From 3c908963b68222dfc18e2dd379c8d8fc464557cc Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Wed, 28 Jun 2023 19:53:45 -0400 Subject: [PATCH 04/15] feat: new auto dismissal of dependabot alerts --- .../api.github.com/common/dependabot-alert.schema.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/payload-schemas/api.github.com/common/dependabot-alert.schema.json b/payload-schemas/api.github.com/common/dependabot-alert.schema.json index 439bb17ef..eaea63d11 100644 --- a/payload-schemas/api.github.com/common/dependabot-alert.schema.json +++ b/payload-schemas/api.github.com/common/dependabot-alert.schema.json @@ -27,7 +27,7 @@ "state": { "type": "string", "description": "The state of the Dependabot alert.", - "enum": ["dismissed", "fixed", "open"] + "enum": ["dismissed", "fixed", "open", "auto_dismissed"] }, "dependency": { "type": "object", @@ -247,6 +247,11 @@ "format": "date-time", "description": "The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." }, + "auto_dismissed_at": { + "type": ["string", "null"], + "format": "date-time", + "description": "The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + }, "dismissed_by": { "oneOf": [{ "$ref": "user.schema.json" }, { "type": "null" }] }, From d9704c782bb65bfd97ea831c959484506b2fdaf1 Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Wed, 28 Jun 2023 19:54:13 -0400 Subject: [PATCH 05/15] feat: new `notification_setting` key on team --- payload-schemas/api.github.com/common/team.schema.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/payload-schemas/api.github.com/common/team.schema.json b/payload-schemas/api.github.com/common/team.schema.json index 723f030fd..bf1c10f02 100644 --- a/payload-schemas/api.github.com/common/team.schema.json +++ b/payload-schemas/api.github.com/common/team.schema.json @@ -77,9 +77,19 @@ "permission": { "type": "string", "description": "Permission that the team will have for its repositories" + }, + "notification_setting": { + "type": "string", + "enum": ["notifications_enabled", "notifications_disabled"], + "description": "Whether team members will receive notifications when their team is @mentioned" } }, "additionalProperties": false + }, + "notification_setting": { + "type": "string", + "enum": ["notifications_enabled", "notifications_disabled"], + "description": "Whether team members will receive notifications when their team is @mentioned" } }, "additionalProperties": false, From 50f2215fe5834a80477b8d872975a39723ed0adf Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Wed, 28 Jun 2023 19:54:55 -0400 Subject: [PATCH 06/15] feat: new `queued` status for workflow jobs --- .../common/workflow-step-queued.schema.json | 23 +++++++++++++++++++ .../common/workflow-step.schema.json | 1 + 2 files changed, 24 insertions(+) create mode 100644 payload-schemas/api.github.com/common/workflow-step-queued.schema.json diff --git a/payload-schemas/api.github.com/common/workflow-step-queued.schema.json b/payload-schemas/api.github.com/common/workflow-step-queued.schema.json new file mode 100644 index 000000000..d1e0a0113 --- /dev/null +++ b/payload-schemas/api.github.com/common/workflow-step-queued.schema.json @@ -0,0 +1,23 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "common/workflow-step-queued.schema.json", + "required": [ + "name", + "status", + "conclusion", + "number", + "started_at", + "completed_at" + ], + "type": "object", + "properties": { + "name": { "type": "string" }, + "status": { "type": "string", "enum": ["queued"] }, + "conclusion": { "type": "null" }, + "number": { "type": "integer" }, + "started_at": { "type": "null" }, + "completed_at": { "type": "null" } + }, + "additionalProperties": false, + "title": "Workflow Step (Queued)" +} diff --git a/payload-schemas/api.github.com/common/workflow-step.schema.json b/payload-schemas/api.github.com/common/workflow-step.schema.json index ae70ea701..d3d05ace3 100644 --- a/payload-schemas/api.github.com/common/workflow-step.schema.json +++ b/payload-schemas/api.github.com/common/workflow-step.schema.json @@ -4,6 +4,7 @@ "type": "object", "oneOf": [ { "$ref": "workflow-step-in_progress.schema.json" }, + { "$ref": "workflow-step-queued.schema.json" }, { "$ref": "workflow-step-completed.schema.json" } ], "title": "Workflow Step" From 4d4b787c1d7d0ef0ddd3351d950643244a1d6402 Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Wed, 28 Jun 2023 19:55:11 -0400 Subject: [PATCH 07/15] build: generate types --- payload-types/schema.d.ts | 42 +++++++++++++++++++++++++++++++++------ 1 file changed, 36 insertions(+), 6 deletions(-) diff --git a/payload-types/schema.d.ts b/payload-types/schema.d.ts index 7e317581c..5ff77c2dd 100644 --- a/payload-types/schema.d.ts +++ b/payload-types/schema.d.ts @@ -453,7 +453,10 @@ export type WorkflowJobEvent = | WorkflowJobInProgressEvent | WorkflowJobQueuedEvent | WorkflowJobWaitingEvent; -export type WorkflowStep = WorkflowStepInProgress | WorkflowStepCompleted; +export type WorkflowStep = + | WorkflowStepInProgress + | WorkflowStepQueued + | WorkflowStepCompleted; export type WorkflowRunEvent = | WorkflowRunCompletedEvent | WorkflowRunInProgressEvent @@ -1140,10 +1143,11 @@ export interface App { | "check_suite" | "code_scanning_alert" | "commit_comment" - | "content_reference" | "create" | "delete" + | "dependabot_alert" | "deployment" + | "deployment_protection_rule" | "deployment_review" | "deployment_status" | "deploy_key" @@ -1176,6 +1180,7 @@ export interface App { | "release" | "repository" | "repository_dispatch" + | "repository_ruleset" | "secret_scanning_alert" | "secret_scanning_alert_location" | "security_and_analysis" @@ -1185,8 +1190,8 @@ export interface App { | "team_add" | "watch" | "workflow_dispatch" - | "workflow_run" | "workflow_job" + | "workflow_run" )[]; } export interface CheckRunCreatedEvent { @@ -2371,7 +2376,7 @@ export interface DependabotAlert { /** * The state of the Dependabot alert. */ - state: "dismissed" | "fixed" | "open"; + state: "dismissed" | "fixed" | "open" | "auto_dismissed"; /** * Details for the vulnerable dependency. */ @@ -2516,6 +2521,10 @@ export interface DependabotAlert { * The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. */ dismissed_at: string | null; + /** + * The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. + */ + auto_dismissed_at?: string | null; dismissed_by: User | null; /** * The reason that the alert was dismissed. @@ -2929,7 +2938,15 @@ export interface Team { * Permission that the team will have for its repositories */ permission: string; + /** + * Whether team members will receive notifications when their team is @mentioned + */ + notification_setting?: "notifications_enabled" | "notifications_disabled"; } | null; + /** + * Whether team members will receive notifications when their team is @mentioned + */ + notification_setting?: "notifications_enabled" | "notifications_disabled"; } export interface Label { id: number; @@ -3641,7 +3658,6 @@ export interface Installation { | "check_suite" | "code_scanning_alert" | "commit_comment" - | "content_reference" | "create" | "delete" | "deployment" @@ -3657,6 +3673,7 @@ export interface Installation { | "label" | "member" | "membership" + | "merge_group" | "merge_queue_entry" | "milestone" | "organization" @@ -3678,6 +3695,7 @@ export interface Installation { | "repository_dispatch" | "secret_scanning_alert" | "secret_scanning_alert_location" + | "security_and_analysis" | "star" | "status" | "team" @@ -6953,6 +6971,9 @@ export interface RepositoryEditedEvent { homepage?: { from: string | null; }; + topics?: { + from: string[]; + }; }; repository: Repository; sender: User; @@ -7067,7 +7088,7 @@ export interface RepositoryVulnerabilityAlertAlert { ghsa_id: string; external_reference: string; external_identifier: string; - fixed_in: string; + fixed_in?: string; fixed_at?: string; fix_reason?: string; created_at: string; @@ -7099,6 +7120,7 @@ export interface RepositoryVulnerabilityAlertResolveEvent { state: "fixed"; fixed_at: string; fix_reason: string; + fixed_in: string; }; repository: Repository; sender: GitHubOrg; @@ -7874,6 +7896,14 @@ export interface WorkflowStepInProgress { started_at: string; completed_at: null; } +export interface WorkflowStepQueued { + name: string; + status: "queued"; + conclusion: null; + number: number; + started_at: null; + completed_at: null; +} export interface WorkflowStepCompleted { name: string; status: "completed"; From 287a523af0b940ff57ee0e10d9317e19f88d00d8 Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Wed, 28 Jun 2023 19:56:28 -0400 Subject: [PATCH 08/15] feat: new `dependabot_alert.created` example payload --- .../dependabot_alert/created.payload.json | 208 ++++++++++++++++++ 1 file changed, 208 insertions(+) create mode 100644 payload-examples/api.github.com/dependabot_alert/created.payload.json diff --git a/payload-examples/api.github.com/dependabot_alert/created.payload.json b/payload-examples/api.github.com/dependabot_alert/created.payload.json new file mode 100644 index 000000000..719c712a1 --- /dev/null +++ b/payload-examples/api.github.com/dependabot_alert/created.payload.json @@ -0,0 +1,208 @@ +{ + "action": "created", + "alert": { + "number": 20, + "state": "open", + "dependency": { + "package": { "ecosystem": "npm", "name": "semver" }, + "manifest_path": "package-lock.json", + "scope": "runtime" + }, + "security_advisory": { + "ghsa_id": "GHSA-c2qf-rxjj-qqgw", + "cve_id": "CVE-2022-25883", + "summary": "semver vulnerable to Regular Expression Denial of Service", + "description": "Versions of the package semver before 7.5.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the function new Range, when untrusted user data is provided as a range.\n\n\n", + "severity": "medium", + "identifiers": [ + { "value": "GHSA-c2qf-rxjj-qqgw", "type": "GHSA" }, + { "value": "CVE-2022-25883", "type": "CVE" } + ], + "references": [ + { "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-25883" }, + { "url": "https://github.com/npm/node-semver/pull/564" }, + { + "url": "https://github.com/npm/node-semver/commit/717534ee353682f3bcf33e60a8af4292626d4441" + }, + { "url": "https://security.snyk.io/vuln/SNYK-JS-SEMVER-3247795" }, + { + "url": "https://github.com/npm/node-semver/blob/main/classes/range.js#L97-L104" + }, + { + "url": "https://github.com/npm/node-semver/blob/main/internal/re.js#L138" + }, + { + "url": "https://github.com/npm/node-semver/blob/main/internal/re.js#L160" + }, + { "url": "https://github.com/advisories/GHSA-c2qf-rxjj-qqgw" } + ], + "published_at": "2023-06-21T06:30:28Z", + "updated_at": "2023-06-22T16:52:56Z", + "withdrawn_at": null, + "vulnerabilities": [ + { + "package": { "ecosystem": "npm", "name": "semver" }, + "severity": "medium", + "vulnerable_version_range": "< 7.5.2", + "first_patched_version": { "identifier": "7.5.2" } + } + ], + "cvss": { + "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L", + "score": 5.3 + }, + "cwes": [ + { + "cwe_id": "CWE-1333", + "name": "Inefficient Regular Expression Complexity" + } + ] + }, + "security_vulnerability": { + "package": { "ecosystem": "npm", "name": "semver" }, + "severity": "medium", + "vulnerable_version_range": "< 7.5.2", + "first_patched_version": { "identifier": "7.5.2" } + }, + "url": "https://api.github.com/repos/wolfy1339/pika-pack/dependabot/alerts/20", + "html_url": "https://github.com/wolfy1339/pika-pack/security/dependabot/20", + "created_at": "2023-06-24T13:57:12Z", + "updated_at": "2023-06-24T13:57:12Z", + "dismissed_at": null, + "dismissed_by": null, + "dismissed_reason": null, + "dismissed_comment": null, + "fixed_at": null, + "auto_dismissed_at": null + }, + "repository": { + "id": 512875663, + "node_id": "R_kgDOHpHcjw", + "name": "pika-pack", + "full_name": "wolfy1339/pika-pack", + "private": false, + "owner": { + "login": "wolfy1339", + "id": 4595477, + "node_id": "MDQ6VXNlcjQ1OTU0Nzc=", + "avatar_url": "https://avatars.githubusercontent.com/u/4595477?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/wolfy1339", + "html_url": "https://github.com/wolfy1339", + "followers_url": "https://api.github.com/users/wolfy1339/followers", + "following_url": "https://api.github.com/users/wolfy1339/following{/other_user}", + "gists_url": "https://api.github.com/users/wolfy1339/gists{/gist_id}", + "starred_url": "https://api.github.com/users/wolfy1339/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/wolfy1339/subscriptions", + "organizations_url": "https://api.github.com/users/wolfy1339/orgs", + "repos_url": "https://api.github.com/users/wolfy1339/repos", + "events_url": "https://api.github.com/users/wolfy1339/events{/privacy}", + "received_events_url": "https://api.github.com/users/wolfy1339/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/wolfy1339/pika-pack", + "description": "📦⚡️ Build your npm package using composable plugins. https://www.pika.dev/blog/introducing-pika-pack/", + "fork": true, + "url": "https://api.github.com/repos/wolfy1339/pika-pack", + "forks_url": "https://api.github.com/repos/wolfy1339/pika-pack/forks", + "keys_url": "https://api.github.com/repos/wolfy1339/pika-pack/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/wolfy1339/pika-pack/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/wolfy1339/pika-pack/teams", + "hooks_url": "https://api.github.com/repos/wolfy1339/pika-pack/hooks", + "issue_events_url": "https://api.github.com/repos/wolfy1339/pika-pack/issues/events{/number}", + "events_url": "https://api.github.com/repos/wolfy1339/pika-pack/events", + "assignees_url": "https://api.github.com/repos/wolfy1339/pika-pack/assignees{/user}", + "branches_url": "https://api.github.com/repos/wolfy1339/pika-pack/branches{/branch}", + "tags_url": "https://api.github.com/repos/wolfy1339/pika-pack/tags", + "blobs_url": "https://api.github.com/repos/wolfy1339/pika-pack/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/wolfy1339/pika-pack/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/wolfy1339/pika-pack/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/wolfy1339/pika-pack/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/wolfy1339/pika-pack/statuses/{sha}", + "languages_url": "https://api.github.com/repos/wolfy1339/pika-pack/languages", + "stargazers_url": "https://api.github.com/repos/wolfy1339/pika-pack/stargazers", + "contributors_url": "https://api.github.com/repos/wolfy1339/pika-pack/contributors", + "subscribers_url": "https://api.github.com/repos/wolfy1339/pika-pack/subscribers", + "subscription_url": "https://api.github.com/repos/wolfy1339/pika-pack/subscription", + "commits_url": "https://api.github.com/repos/wolfy1339/pika-pack/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/wolfy1339/pika-pack/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/wolfy1339/pika-pack/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/wolfy1339/pika-pack/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/wolfy1339/pika-pack/contents/{+path}", + "compare_url": "https://api.github.com/repos/wolfy1339/pika-pack/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/wolfy1339/pika-pack/merges", + "archive_url": "https://api.github.com/repos/wolfy1339/pika-pack/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/wolfy1339/pika-pack/downloads", + "issues_url": "https://api.github.com/repos/wolfy1339/pika-pack/issues{/number}", + "pulls_url": "https://api.github.com/repos/wolfy1339/pika-pack/pulls{/number}", + "milestones_url": "https://api.github.com/repos/wolfy1339/pika-pack/milestones{/number}", + "notifications_url": "https://api.github.com/repos/wolfy1339/pika-pack/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/wolfy1339/pika-pack/labels{/name}", + "releases_url": "https://api.github.com/repos/wolfy1339/pika-pack/releases{/id}", + "deployments_url": "https://api.github.com/repos/wolfy1339/pika-pack/deployments", + "created_at": "2022-07-11T18:56:02Z", + "updated_at": "2022-07-11T18:58:39Z", + "pushed_at": "2023-06-16T01:37:23Z", + "git_url": "git://github.com/wolfy1339/pika-pack.git", + "ssh_url": "git@github.com:wolfy1339/pika-pack.git", + "clone_url": "https://github.com/wolfy1339/pika-pack.git", + "svn_url": "https://github.com/wolfy1339/pika-pack", + "homepage": "", + "size": 859, + "stargazers_count": 0, + "watchers_count": 0, + "language": "JavaScript", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 13, + "license": { + "key": "other", + "name": "Other", + "spdx_id": "NOASSERTION", + "url": null, + "node_id": "MDc6TGljZW5zZTA=" + }, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 13, + "watchers": 0, + "default_branch": "master" + }, + "sender": { + "login": "github", + "id": 9919, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=", + "avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github", + "html_url": "https://github.com/github", + "followers_url": "https://api.github.com/users/github/followers", + "following_url": "https://api.github.com/users/github/following{/other_user}", + "gists_url": "https://api.github.com/users/github/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github/subscriptions", + "organizations_url": "https://api.github.com/users/github/orgs", + "repos_url": "https://api.github.com/users/github/repos", + "events_url": "https://api.github.com/users/github/events{/privacy}", + "received_events_url": "https://api.github.com/users/github/received_events", + "type": "Organization", + "site_admin": false + }, + "installation": { + "id": 13986380, + "node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMTM5ODYzODA=" + } +} From fd357c33728127bad567adabb1e33d9208d75247 Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Wed, 28 Jun 2023 19:57:04 -0400 Subject: [PATCH 09/15] chore: update payloads to reflect schema changes --- .../api.github.com/team/added_to_repository.payload.json | 1 + payload-examples/api.github.com/team/created.payload.json | 1 + payload-examples/api.github.com/team/deleted.payload.json | 1 + payload-examples/api.github.com/team/edited.payload.json | 1 + .../api.github.com/team/removed_from_repository.payload.json | 1 + 5 files changed, 5 insertions(+) diff --git a/payload-examples/api.github.com/team/added_to_repository.payload.json b/payload-examples/api.github.com/team/added_to_repository.payload.json index 2f7a575c8..0df841aed 100644 --- a/payload-examples/api.github.com/team/added_to_repository.payload.json +++ b/payload-examples/api.github.com/team/added_to_repository.payload.json @@ -7,6 +7,7 @@ "slug": "github", "description": "Open-source team", "privacy": "secret", + "notification_setting": "notifications_enabled", "url": "https://api.github.com/teams/3253328", "html_url": "https://github.com/orgs/Octocoders/teams/github", "members_url": "https://api.github.com/teams/3253328/members{/member}", diff --git a/payload-examples/api.github.com/team/created.payload.json b/payload-examples/api.github.com/team/created.payload.json index 6e0c59508..ecb5cc726 100644 --- a/payload-examples/api.github.com/team/created.payload.json +++ b/payload-examples/api.github.com/team/created.payload.json @@ -7,6 +7,7 @@ "slug": "github", "description": null, "privacy": "secret", + "notification_setting": "notifications_enabled", "url": "https://api.github.com/teams/3253328", "html_url": "https://github.com/orgs/Octocoders/teams/github", "members_url": "https://api.github.com/teams/3253328/members{/member}", diff --git a/payload-examples/api.github.com/team/deleted.payload.json b/payload-examples/api.github.com/team/deleted.payload.json index 886f82608..b95a8b7cd 100644 --- a/payload-examples/api.github.com/team/deleted.payload.json +++ b/payload-examples/api.github.com/team/deleted.payload.json @@ -7,6 +7,7 @@ "slug": "github", "description": "Open-source team", "privacy": "secret", + "notification_setting": "notifications_enabled", "url": "https://api.github.com/teams/3253328", "html_url": "https://github.com/orgs/Octocoders/teams/github", "members_url": "https://api.github.com/teams/3253328/members{/member}", diff --git a/payload-examples/api.github.com/team/edited.payload.json b/payload-examples/api.github.com/team/edited.payload.json index 1326bae5d..41146bcbf 100644 --- a/payload-examples/api.github.com/team/edited.payload.json +++ b/payload-examples/api.github.com/team/edited.payload.json @@ -8,6 +8,7 @@ "slug": "github", "description": "Open-source team", "privacy": "secret", + "notification_setting": "notifications_enabled", "url": "https://api.github.com/teams/3253328", "html_url": "https://github.com/orgs/Octocoders/teams/github", "members_url": "https://api.github.com/teams/3253328/members{/member}", diff --git a/payload-examples/api.github.com/team/removed_from_repository.payload.json b/payload-examples/api.github.com/team/removed_from_repository.payload.json index 2b88e28f4..7f978ca02 100644 --- a/payload-examples/api.github.com/team/removed_from_repository.payload.json +++ b/payload-examples/api.github.com/team/removed_from_repository.payload.json @@ -7,6 +7,7 @@ "slug": "github", "description": "Open-source team", "privacy": "secret", + "notification_setting": "notifications_enabled", "url": "https://api.github.com/teams/3253328", "html_url": "https://github.com/orgs/Octocoders/teams/github", "members_url": "https://api.github.com/teams/3253328/members{/member}", From 2c846a9e9bd106346229ba30b4750967a534b390 Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Wed, 28 Jun 2023 19:57:34 -0400 Subject: [PATCH 10/15] feat: new payload example to demonstrate `queued` steps in a workflow job --- ...in_progress.with-queued-steps.payload.json | 231 ++++++++++++++++++ 1 file changed, 231 insertions(+) create mode 100644 payload-examples/api.github.com/workflow_job/in_progress.with-queued-steps.payload.json diff --git a/payload-examples/api.github.com/workflow_job/in_progress.with-queued-steps.payload.json b/payload-examples/api.github.com/workflow_job/in_progress.with-queued-steps.payload.json new file mode 100644 index 000000000..b47ee4ad0 --- /dev/null +++ b/payload-examples/api.github.com/workflow_job/in_progress.with-queued-steps.payload.json @@ -0,0 +1,231 @@ +{ + "action": "in_progress", + "workflow_job": { + "id": 14541957942, + "run_id": 5373506832, + "workflow_name": "Test", + "head_branch": "renovate/got-13.x", + "run_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/actions/runs/5373506832", + "run_attempt": 1, + "node_id": "CR_kwDOGpAW4c8AAAADYsSrNg", + "head_sha": "eeeb91cc89453bff9ce51f450d8badd4eb41ae8b", + "url": "https://api.github.com/repos/wolfy1339/github-events-schemas/actions/jobs/14541957942", + "html_url": "https://github.com/wolfy1339/github-events-schemas/actions/runs/5373506832/jobs/9747952373", + "status": "in_progress", + "conclusion": null, + "created_at": "2023-06-26T03:31:29Z", + "started_at": "2023-06-26T03:31:36Z", + "completed_at": null, + "name": "Do examples need to be regenerated?", + "steps": [ + { + "name": "Set up job", + "status": "completed", + "conclusion": "success", + "number": 1, + "started_at": "2023-06-26T03:31:35.000Z", + "completed_at": "2023-06-26T03:31:36.000Z" + }, + { + "name": "Run actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b", + "status": "completed", + "conclusion": "success", + "number": 2, + "started_at": "2023-06-26T03:31:36.000Z", + "completed_at": "2023-06-26T03:31:37.000Z" + }, + { + "name": "Run actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93", + "status": "in_progress", + "conclusion": null, + "number": 3, + "started_at": "2023-06-26T03:31:37.000Z", + "completed_at": null + }, + { + "name": "Run npm ci", + "status": "queued", + "conclusion": null, + "number": 4, + "started_at": null, + "completed_at": null + }, + { + "name": "Run npm run build:events -- --check --cached", + "status": "queued", + "conclusion": null, + "number": 5, + "started_at": null, + "completed_at": null + }, + { + "name": "Run git status", + "status": "queued", + "conclusion": null, + "number": 6, + "started_at": null, + "completed_at": null + }, + { + "name": "Run git diff --exit-code || bash -c \\", + "status": "queued", + "conclusion": null, + "number": 7, + "started_at": null, + "completed_at": null + }, + { + "name": "Post Run actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93", + "status": "queued", + "conclusion": null, + "number": 13, + "started_at": null, + "completed_at": null + }, + { + "name": "Post Run actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b", + "status": "queued", + "conclusion": null, + "number": 14, + "started_at": null, + "completed_at": null + } + ], + "check_run_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/check-runs/14541957942", + "labels": ["ubuntu-latest"], + "runner_id": 6, + "runner_name": "GitHub Actions 6", + "runner_group_id": 2, + "runner_group_name": "GitHub Actions" + }, + "repository": { + "id": 445650657, + "node_id": "R_kgDOGpAW4Q", + "name": "github-events-schemas", + "full_name": "wolfy1339/github-events-schemas", + "private": false, + "owner": { + "login": "wolfy1339", + "id": 4595477, + "node_id": "MDQ6VXNlcjQ1OTU0Nzc=", + "avatar_url": "https://avatars.githubusercontent.com/u/4595477?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/wolfy1339", + "html_url": "https://github.com/wolfy1339", + "followers_url": "https://api.github.com/users/wolfy1339/followers", + "following_url": "https://api.github.com/users/wolfy1339/following{/other_user}", + "gists_url": "https://api.github.com/users/wolfy1339/gists{/gist_id}", + "starred_url": "https://api.github.com/users/wolfy1339/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/wolfy1339/subscriptions", + "organizations_url": "https://api.github.com/users/wolfy1339/orgs", + "repos_url": "https://api.github.com/users/wolfy1339/repos", + "events_url": "https://api.github.com/users/wolfy1339/events{/privacy}", + "received_events_url": "https://api.github.com/users/wolfy1339/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/wolfy1339/github-events-schemas", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/wolfy1339/github-events-schemas", + "forks_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/forks", + "keys_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/teams", + "hooks_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/hooks", + "issue_events_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/issues/events{/number}", + "events_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/events", + "assignees_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/assignees{/user}", + "branches_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/branches{/branch}", + "tags_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/tags", + "blobs_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/statuses/{sha}", + "languages_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/languages", + "stargazers_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/stargazers", + "contributors_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/contributors", + "subscribers_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/subscribers", + "subscription_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/subscription", + "commits_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/contents/{+path}", + "compare_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/merges", + "archive_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/downloads", + "issues_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/issues{/number}", + "pulls_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/pulls{/number}", + "milestones_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/milestones{/number}", + "notifications_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/labels{/name}", + "releases_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/releases{/id}", + "deployments_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/deployments", + "created_at": "2022-01-07T20:57:03Z", + "updated_at": "2022-01-08T03:16:54Z", + "pushed_at": "2023-06-26T03:31:37Z", + "git_url": "git://github.com/wolfy1339/github-events-schemas.git", + "ssh_url": "git@github.com:wolfy1339/github-events-schemas.git", + "clone_url": "https://github.com/wolfy1339/github-events-schemas.git", + "svn_url": "https://github.com/wolfy1339/github-events-schemas", + "homepage": null, + "size": 196, + "stargazers_count": 0, + "watchers_count": 0, + "language": "TypeScript", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 8, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 8, + "watchers": 0, + "default_branch": "main" + }, + "sender": { + "login": "renovate[bot]", + "id": 29139614, + "node_id": "MDM6Qm90MjkxMzk2MTQ=", + "avatar_url": "https://avatars.githubusercontent.com/in/2740?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/renovate%5Bbot%5D", + "html_url": "https://github.com/apps/renovate", + "followers_url": "https://api.github.com/users/renovate%5Bbot%5D/followers", + "following_url": "https://api.github.com/users/renovate%5Bbot%5D/following{/other_user}", + "gists_url": "https://api.github.com/users/renovate%5Bbot%5D/gists{/gist_id}", + "starred_url": "https://api.github.com/users/renovate%5Bbot%5D/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/renovate%5Bbot%5D/subscriptions", + "organizations_url": "https://api.github.com/users/renovate%5Bbot%5D/orgs", + "repos_url": "https://api.github.com/users/renovate%5Bbot%5D/repos", + "events_url": "https://api.github.com/users/renovate%5Bbot%5D/events{/privacy}", + "received_events_url": "https://api.github.com/users/renovate%5Bbot%5D/received_events", + "type": "Bot", + "site_admin": false + }, + "installation": { + "id": 3456996, + "node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMzQ1Njk5Ng==" + } +} From c2d98d720ca2aa7b4fa7bf19fa53e6e78bb44b58 Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Wed, 28 Jun 2023 19:57:50 -0400 Subject: [PATCH 11/15] build: generate index.json --- payload-examples/api.github.com/index.json | 446 ++++++++++++++++++++- 1 file changed, 444 insertions(+), 2 deletions(-) diff --git a/payload-examples/api.github.com/index.json b/payload-examples/api.github.com/index.json index 64e731cfe..b179fe7b3 100644 --- a/payload-examples/api.github.com/index.json +++ b/payload-examples/api.github.com/index.json @@ -9056,6 +9056,214 @@ "site_admin": false } }, + { + "action": "created", + "alert": { + "number": 20, + "state": "open", + "dependency": { + "package": { "ecosystem": "npm", "name": "semver" }, + "manifest_path": "package-lock.json", + "scope": "runtime" + }, + "security_advisory": { + "ghsa_id": "GHSA-c2qf-rxjj-qqgw", + "cve_id": "CVE-2022-25883", + "summary": "semver vulnerable to Regular Expression Denial of Service", + "description": "Versions of the package semver before 7.5.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the function new Range, when untrusted user data is provided as a range.\n\n\n", + "severity": "medium", + "identifiers": [ + { "value": "GHSA-c2qf-rxjj-qqgw", "type": "GHSA" }, + { "value": "CVE-2022-25883", "type": "CVE" } + ], + "references": [ + { "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-25883" }, + { "url": "https://github.com/npm/node-semver/pull/564" }, + { + "url": "https://github.com/npm/node-semver/commit/717534ee353682f3bcf33e60a8af4292626d4441" + }, + { "url": "https://security.snyk.io/vuln/SNYK-JS-SEMVER-3247795" }, + { + "url": "https://github.com/npm/node-semver/blob/main/classes/range.js#L97-L104" + }, + { + "url": "https://github.com/npm/node-semver/blob/main/internal/re.js#L138" + }, + { + "url": "https://github.com/npm/node-semver/blob/main/internal/re.js#L160" + }, + { "url": "https://github.com/advisories/GHSA-c2qf-rxjj-qqgw" } + ], + "published_at": "2023-06-21T06:30:28Z", + "updated_at": "2023-06-22T16:52:56Z", + "withdrawn_at": null, + "vulnerabilities": [ + { + "package": { "ecosystem": "npm", "name": "semver" }, + "severity": "medium", + "vulnerable_version_range": "< 7.5.2", + "first_patched_version": { "identifier": "7.5.2" } + } + ], + "cvss": { + "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L", + "score": 5.3 + }, + "cwes": [ + { + "cwe_id": "CWE-1333", + "name": "Inefficient Regular Expression Complexity" + } + ] + }, + "security_vulnerability": { + "package": { "ecosystem": "npm", "name": "semver" }, + "severity": "medium", + "vulnerable_version_range": "< 7.5.2", + "first_patched_version": { "identifier": "7.5.2" } + }, + "url": "https://api.github.com/repos/wolfy1339/pika-pack/dependabot/alerts/20", + "html_url": "https://github.com/wolfy1339/pika-pack/security/dependabot/20", + "created_at": "2023-06-24T13:57:12Z", + "updated_at": "2023-06-24T13:57:12Z", + "dismissed_at": null, + "dismissed_by": null, + "dismissed_reason": null, + "dismissed_comment": null, + "fixed_at": null, + "auto_dismissed_at": null + }, + "repository": { + "id": 512875663, + "node_id": "R_kgDOHpHcjw", + "name": "pika-pack", + "full_name": "wolfy1339/pika-pack", + "private": false, + "owner": { + "login": "wolfy1339", + "id": 4595477, + "node_id": "MDQ6VXNlcjQ1OTU0Nzc=", + "avatar_url": "https://avatars.githubusercontent.com/u/4595477?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/wolfy1339", + "html_url": "https://github.com/wolfy1339", + "followers_url": "https://api.github.com/users/wolfy1339/followers", + "following_url": "https://api.github.com/users/wolfy1339/following{/other_user}", + "gists_url": "https://api.github.com/users/wolfy1339/gists{/gist_id}", + "starred_url": "https://api.github.com/users/wolfy1339/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/wolfy1339/subscriptions", + "organizations_url": "https://api.github.com/users/wolfy1339/orgs", + "repos_url": "https://api.github.com/users/wolfy1339/repos", + "events_url": "https://api.github.com/users/wolfy1339/events{/privacy}", + "received_events_url": "https://api.github.com/users/wolfy1339/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/wolfy1339/pika-pack", + "description": "📦⚡️ Build your npm package using composable plugins. https://www.pika.dev/blog/introducing-pika-pack/", + "fork": true, + "url": "https://api.github.com/repos/wolfy1339/pika-pack", + "forks_url": "https://api.github.com/repos/wolfy1339/pika-pack/forks", + "keys_url": "https://api.github.com/repos/wolfy1339/pika-pack/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/wolfy1339/pika-pack/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/wolfy1339/pika-pack/teams", + "hooks_url": "https://api.github.com/repos/wolfy1339/pika-pack/hooks", + "issue_events_url": "https://api.github.com/repos/wolfy1339/pika-pack/issues/events{/number}", + "events_url": "https://api.github.com/repos/wolfy1339/pika-pack/events", + "assignees_url": "https://api.github.com/repos/wolfy1339/pika-pack/assignees{/user}", + "branches_url": "https://api.github.com/repos/wolfy1339/pika-pack/branches{/branch}", + "tags_url": "https://api.github.com/repos/wolfy1339/pika-pack/tags", + "blobs_url": "https://api.github.com/repos/wolfy1339/pika-pack/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/wolfy1339/pika-pack/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/wolfy1339/pika-pack/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/wolfy1339/pika-pack/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/wolfy1339/pika-pack/statuses/{sha}", + "languages_url": "https://api.github.com/repos/wolfy1339/pika-pack/languages", + "stargazers_url": "https://api.github.com/repos/wolfy1339/pika-pack/stargazers", + "contributors_url": "https://api.github.com/repos/wolfy1339/pika-pack/contributors", + "subscribers_url": "https://api.github.com/repos/wolfy1339/pika-pack/subscribers", + "subscription_url": "https://api.github.com/repos/wolfy1339/pika-pack/subscription", + "commits_url": "https://api.github.com/repos/wolfy1339/pika-pack/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/wolfy1339/pika-pack/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/wolfy1339/pika-pack/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/wolfy1339/pika-pack/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/wolfy1339/pika-pack/contents/{+path}", + "compare_url": "https://api.github.com/repos/wolfy1339/pika-pack/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/wolfy1339/pika-pack/merges", + "archive_url": "https://api.github.com/repos/wolfy1339/pika-pack/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/wolfy1339/pika-pack/downloads", + "issues_url": "https://api.github.com/repos/wolfy1339/pika-pack/issues{/number}", + "pulls_url": "https://api.github.com/repos/wolfy1339/pika-pack/pulls{/number}", + "milestones_url": "https://api.github.com/repos/wolfy1339/pika-pack/milestones{/number}", + "notifications_url": "https://api.github.com/repos/wolfy1339/pika-pack/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/wolfy1339/pika-pack/labels{/name}", + "releases_url": "https://api.github.com/repos/wolfy1339/pika-pack/releases{/id}", + "deployments_url": "https://api.github.com/repos/wolfy1339/pika-pack/deployments", + "created_at": "2022-07-11T18:56:02Z", + "updated_at": "2022-07-11T18:58:39Z", + "pushed_at": "2023-06-16T01:37:23Z", + "git_url": "git://github.com/wolfy1339/pika-pack.git", + "ssh_url": "git@github.com:wolfy1339/pika-pack.git", + "clone_url": "https://github.com/wolfy1339/pika-pack.git", + "svn_url": "https://github.com/wolfy1339/pika-pack", + "homepage": "", + "size": 859, + "stargazers_count": 0, + "watchers_count": 0, + "language": "JavaScript", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 13, + "license": { + "key": "other", + "name": "Other", + "spdx_id": "NOASSERTION", + "url": null, + "node_id": "MDc6TGljZW5zZTA=" + }, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 13, + "watchers": 0, + "default_branch": "master" + }, + "sender": { + "login": "github", + "id": 9919, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=", + "avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github", + "html_url": "https://github.com/github", + "followers_url": "https://api.github.com/users/github/followers", + "following_url": "https://api.github.com/users/github/following{/other_user}", + "gists_url": "https://api.github.com/users/github/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github/subscriptions", + "organizations_url": "https://api.github.com/users/github/orgs", + "repos_url": "https://api.github.com/users/github/repos", + "events_url": "https://api.github.com/users/github/events{/privacy}", + "received_events_url": "https://api.github.com/users/github/received_events", + "type": "Organization", + "site_admin": false + }, + "installation": { + "id": 13986380, + "node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMTM5ODYzODA=" + } + }, { "action": "fixed", "alert": { @@ -16811,7 +17019,6 @@ "check_suite", "code_scanning_alert", "commit_comment", - "content_reference", "create", "delete", "deployment", @@ -16971,7 +17178,6 @@ "check_suite", "code_scanning_alert", "commit_comment", - "content_reference", "create", "delete", "deployment", @@ -68061,6 +68267,7 @@ "slug": "github", "description": "Open-source team", "privacy": "secret", + "notification_setting": "notifications_enabled", "url": "https://api.github.com/teams/3253328", "html_url": "https://github.com/orgs/Octocoders/teams/github", "members_url": "https://api.github.com/teams/3253328/members{/member}", @@ -68214,6 +68421,7 @@ "slug": "github", "description": null, "privacy": "secret", + "notification_setting": "notifications_enabled", "url": "https://api.github.com/teams/3253328", "html_url": "https://github.com/orgs/Octocoders/teams/github", "members_url": "https://api.github.com/teams/3253328/members{/member}", @@ -68268,6 +68476,7 @@ "slug": "github", "description": "Open-source team", "privacy": "secret", + "notification_setting": "notifications_enabled", "url": "https://api.github.com/teams/3253328", "html_url": "https://github.com/orgs/Octocoders/teams/github", "members_url": "https://api.github.com/teams/3253328/members{/member}", @@ -68323,6 +68532,7 @@ "slug": "github", "description": "Open-source team", "privacy": "secret", + "notification_setting": "notifications_enabled", "url": "https://api.github.com/teams/3253328", "html_url": "https://github.com/orgs/Octocoders/teams/github", "members_url": "https://api.github.com/teams/3253328/members{/member}", @@ -68377,6 +68587,7 @@ "slug": "github", "description": "Open-source team", "privacy": "secret", + "notification_setting": "notifications_enabled", "url": "https://api.github.com/teams/3253328", "html_url": "https://github.com/orgs/Octocoders/teams/github", "members_url": "https://api.github.com/teams/3253328/members{/member}", @@ -70542,6 +70753,237 @@ "node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMQ==" } }, + { + "action": "in_progress", + "workflow_job": { + "id": 14541957942, + "run_id": 5373506832, + "workflow_name": "Test", + "head_branch": "renovate/got-13.x", + "run_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/actions/runs/5373506832", + "run_attempt": 1, + "node_id": "CR_kwDOGpAW4c8AAAADYsSrNg", + "head_sha": "eeeb91cc89453bff9ce51f450d8badd4eb41ae8b", + "url": "https://api.github.com/repos/wolfy1339/github-events-schemas/actions/jobs/14541957942", + "html_url": "https://github.com/wolfy1339/github-events-schemas/actions/runs/5373506832/jobs/9747952373", + "status": "in_progress", + "conclusion": null, + "created_at": "2023-06-26T03:31:29Z", + "started_at": "2023-06-26T03:31:36Z", + "completed_at": null, + "name": "Do examples need to be regenerated?", + "steps": [ + { + "name": "Set up job", + "status": "completed", + "conclusion": "success", + "number": 1, + "started_at": "2023-06-26T03:31:35.000Z", + "completed_at": "2023-06-26T03:31:36.000Z" + }, + { + "name": "Run actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b", + "status": "completed", + "conclusion": "success", + "number": 2, + "started_at": "2023-06-26T03:31:36.000Z", + "completed_at": "2023-06-26T03:31:37.000Z" + }, + { + "name": "Run actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93", + "status": "in_progress", + "conclusion": null, + "number": 3, + "started_at": "2023-06-26T03:31:37.000Z", + "completed_at": null + }, + { + "name": "Run npm ci", + "status": "queued", + "conclusion": null, + "number": 4, + "started_at": null, + "completed_at": null + }, + { + "name": "Run npm run build:events -- --check --cached", + "status": "queued", + "conclusion": null, + "number": 5, + "started_at": null, + "completed_at": null + }, + { + "name": "Run git status", + "status": "queued", + "conclusion": null, + "number": 6, + "started_at": null, + "completed_at": null + }, + { + "name": "Run git diff --exit-code || bash -c \\", + "status": "queued", + "conclusion": null, + "number": 7, + "started_at": null, + "completed_at": null + }, + { + "name": "Post Run actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93", + "status": "queued", + "conclusion": null, + "number": 13, + "started_at": null, + "completed_at": null + }, + { + "name": "Post Run actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b", + "status": "queued", + "conclusion": null, + "number": 14, + "started_at": null, + "completed_at": null + } + ], + "check_run_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/check-runs/14541957942", + "labels": ["ubuntu-latest"], + "runner_id": 6, + "runner_name": "GitHub Actions 6", + "runner_group_id": 2, + "runner_group_name": "GitHub Actions" + }, + "repository": { + "id": 445650657, + "node_id": "R_kgDOGpAW4Q", + "name": "github-events-schemas", + "full_name": "wolfy1339/github-events-schemas", + "private": false, + "owner": { + "login": "wolfy1339", + "id": 4595477, + "node_id": "MDQ6VXNlcjQ1OTU0Nzc=", + "avatar_url": "https://avatars.githubusercontent.com/u/4595477?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/wolfy1339", + "html_url": "https://github.com/wolfy1339", + "followers_url": "https://api.github.com/users/wolfy1339/followers", + "following_url": "https://api.github.com/users/wolfy1339/following{/other_user}", + "gists_url": "https://api.github.com/users/wolfy1339/gists{/gist_id}", + "starred_url": "https://api.github.com/users/wolfy1339/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/wolfy1339/subscriptions", + "organizations_url": "https://api.github.com/users/wolfy1339/orgs", + "repos_url": "https://api.github.com/users/wolfy1339/repos", + "events_url": "https://api.github.com/users/wolfy1339/events{/privacy}", + "received_events_url": "https://api.github.com/users/wolfy1339/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/wolfy1339/github-events-schemas", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/wolfy1339/github-events-schemas", + "forks_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/forks", + "keys_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/teams", + "hooks_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/hooks", + "issue_events_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/issues/events{/number}", + "events_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/events", + "assignees_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/assignees{/user}", + "branches_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/branches{/branch}", + "tags_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/tags", + "blobs_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/statuses/{sha}", + "languages_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/languages", + "stargazers_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/stargazers", + "contributors_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/contributors", + "subscribers_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/subscribers", + "subscription_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/subscription", + "commits_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/contents/{+path}", + "compare_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/merges", + "archive_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/downloads", + "issues_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/issues{/number}", + "pulls_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/pulls{/number}", + "milestones_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/milestones{/number}", + "notifications_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/labels{/name}", + "releases_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/releases{/id}", + "deployments_url": "https://api.github.com/repos/wolfy1339/github-events-schemas/deployments", + "created_at": "2022-01-07T20:57:03Z", + "updated_at": "2022-01-08T03:16:54Z", + "pushed_at": "2023-06-26T03:31:37Z", + "git_url": "git://github.com/wolfy1339/github-events-schemas.git", + "ssh_url": "git@github.com:wolfy1339/github-events-schemas.git", + "clone_url": "https://github.com/wolfy1339/github-events-schemas.git", + "svn_url": "https://github.com/wolfy1339/github-events-schemas", + "homepage": null, + "size": 196, + "stargazers_count": 0, + "watchers_count": 0, + "language": "TypeScript", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 8, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 8, + "watchers": 0, + "default_branch": "main" + }, + "sender": { + "login": "renovate[bot]", + "id": 29139614, + "node_id": "MDM6Qm90MjkxMzk2MTQ=", + "avatar_url": "https://avatars.githubusercontent.com/in/2740?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/renovate%5Bbot%5D", + "html_url": "https://github.com/apps/renovate", + "followers_url": "https://api.github.com/users/renovate%5Bbot%5D/followers", + "following_url": "https://api.github.com/users/renovate%5Bbot%5D/following{/other_user}", + "gists_url": "https://api.github.com/users/renovate%5Bbot%5D/gists{/gist_id}", + "starred_url": "https://api.github.com/users/renovate%5Bbot%5D/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/renovate%5Bbot%5D/subscriptions", + "organizations_url": "https://api.github.com/users/renovate%5Bbot%5D/orgs", + "repos_url": "https://api.github.com/users/renovate%5Bbot%5D/repos", + "events_url": "https://api.github.com/users/renovate%5Bbot%5D/events{/privacy}", + "received_events_url": "https://api.github.com/users/renovate%5Bbot%5D/received_events", + "type": "Bot", + "site_admin": false + }, + "installation": { + "id": 3456996, + "node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMzQ1Njk5Ng==" + } + }, { "action": "queued", "workflow_job": { From 4272255e944c39c08357779cf5c23960c79944be Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Wed, 28 Jun 2023 20:28:46 -0400 Subject: [PATCH 12/15] fix: `id` in nugget package metadata cannot be an object --- .../common/package-nuget-metadata.schema.json | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/payload-schemas/api.github.com/common/package-nuget-metadata.schema.json b/payload-schemas/api.github.com/common/package-nuget-metadata.schema.json index a712b8216..88c4f697d 100644 --- a/payload-schemas/api.github.com/common/package-nuget-metadata.schema.json +++ b/payload-schemas/api.github.com/common/package-nuget-metadata.schema.json @@ -4,13 +4,7 @@ "type": "object", "required": [], "properties": { - "id": { - "oneOf": [ - { "type": "string" }, - { "type": "object" }, - { "type": "integer" } - ] - }, + "id": { "oneOf": [{ "type": "string" }, { "type": "integer" }] }, "name": { "type": "string" }, "value": { "oneOf": [ From d74aa046f8d0ec4bf59aa7c814bf992fa7eec91f Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Wed, 28 Jun 2023 20:32:35 -0400 Subject: [PATCH 13/15] build: generate types --- payload-types/schema.d.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/payload-types/schema.d.ts b/payload-types/schema.d.ts index 5ff77c2dd..b51038011 100644 --- a/payload-types/schema.d.ts +++ b/payload-types/schema.d.ts @@ -5039,12 +5039,7 @@ export interface PackageNPMMetadata { deleted_by_id?: number; } export interface PackageNugetMetadata { - id?: - | string - | { - [k: string]: unknown; - } - | number; + id?: string | number; name?: string; value?: | boolean From c07bc57a3fc18c2bec30a8d8517912ce8f766278 Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Wed, 28 Jun 2023 20:33:50 -0400 Subject: [PATCH 14/15] fix: add missing `additionalProperties: false` --- .../api.github.com/common/secret-scanning-location.schema.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/payload-schemas/api.github.com/common/secret-scanning-location.schema.json b/payload-schemas/api.github.com/common/secret-scanning-location.schema.json index a7eef2312..afd3c3c67 100644 --- a/payload-schemas/api.github.com/common/secret-scanning-location.schema.json +++ b/payload-schemas/api.github.com/common/secret-scanning-location.schema.json @@ -161,5 +161,6 @@ "additionalProperties": false } ], - "title": "Secret Scanning Location" + "title": "Secret Scanning Location", + "additionalProperties": false } From 79c095125ca1c37ac89d246ba5c675dc5c2cfb47 Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Wed, 28 Jun 2023 20:39:24 -0400 Subject: [PATCH 15/15] fix: add missing `installation` key to `registry_packag` and `package` events Fixes #812 --- payload-schemas/api.github.com/package/published.schema.json | 1 + payload-schemas/api.github.com/package/updated.schema.json | 1 + .../api.github.com/registry_package/published.schema.json | 1 + .../api.github.com/registry_package/updated.schema.json | 1 + payload-types/schema.d.ts | 4 ++++ 5 files changed, 8 insertions(+) diff --git a/payload-schemas/api.github.com/package/published.schema.json b/payload-schemas/api.github.com/package/published.schema.json index 1ae326876..39fc03518 100644 --- a/payload-schemas/api.github.com/package/published.schema.json +++ b/payload-schemas/api.github.com/package/published.schema.json @@ -267,6 +267,7 @@ }, "repository": { "$ref": "common/repository.schema.json" }, "sender": { "$ref": "common/user.schema.json" }, + "installation": { "$ref": "common/installation-lite.schema.json" }, "organization": { "$ref": "common/organization.schema.json" } }, "additionalProperties": false, diff --git a/payload-schemas/api.github.com/package/updated.schema.json b/payload-schemas/api.github.com/package/updated.schema.json index 8bbc59a2c..b44f0bd4d 100644 --- a/payload-schemas/api.github.com/package/updated.schema.json +++ b/payload-schemas/api.github.com/package/updated.schema.json @@ -266,6 +266,7 @@ }, "repository": { "$ref": "common/repository.schema.json" }, "sender": { "$ref": "common/user.schema.json" }, + "installation": { "$ref": "common/installation-lite.schema.json" }, "organization": { "$ref": "common/organization.schema.json" } }, "additionalProperties": false, diff --git a/payload-schemas/api.github.com/registry_package/published.schema.json b/payload-schemas/api.github.com/registry_package/published.schema.json index 424f7e203..e2bf257e6 100644 --- a/payload-schemas/api.github.com/registry_package/published.schema.json +++ b/payload-schemas/api.github.com/registry_package/published.schema.json @@ -351,6 +351,7 @@ }, "repository": { "$ref": "common/repository.schema.json" }, "sender": { "$ref": "common/user.schema.json" }, + "installation": { "$ref": "common/installation-lite.schema.json" }, "organization": { "$ref": "common/organization.schema.json" } }, "additionalProperties": false, diff --git a/payload-schemas/api.github.com/registry_package/updated.schema.json b/payload-schemas/api.github.com/registry_package/updated.schema.json index 19a83a0c7..6772a6d46 100644 --- a/payload-schemas/api.github.com/registry_package/updated.schema.json +++ b/payload-schemas/api.github.com/registry_package/updated.schema.json @@ -351,6 +351,7 @@ }, "repository": { "$ref": "common/repository.schema.json" }, "sender": { "$ref": "common/user.schema.json" }, + "installation": { "$ref": "common/installation-lite.schema.json" }, "organization": { "$ref": "common/organization.schema.json" } }, "additionalProperties": false, diff --git a/payload-types/schema.d.ts b/payload-types/schema.d.ts index b51038011..78edda16a 100644 --- a/payload-types/schema.d.ts +++ b/payload-types/schema.d.ts @@ -4967,6 +4967,7 @@ export interface PackagePublishedEvent { }; repository: Repository; sender: User; + installation?: InstallationLite; organization?: Organization; } export interface PackageNPMMetadata { @@ -5184,6 +5185,7 @@ export interface PackageUpdatedEvent { }; repository: Repository; sender: User; + installation?: InstallationLite; organization?: Organization; } /** @@ -6607,6 +6609,7 @@ export interface RegistryPackagePublishedEvent { }; repository: Repository; sender: User; + installation?: InstallationLite; organization?: Organization; } export interface RegistryPackageUpdatedEvent { @@ -6785,6 +6788,7 @@ export interface RegistryPackageUpdatedEvent { }; repository: Repository; sender: User; + installation?: InstallationLite; organization?: Organization; } export interface ReleaseCreatedEvent {