From 2dab79accd7c72b5fe428c5ca62e45cc9a7ff4b0 Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Wed, 8 Jan 2025 10:36:53 -0800 Subject: [PATCH] feat: new action runner groups endpoints, new code scanning alerts autofix endpoints, new sub-issues endpoints, new private registries enpoints, new code security endpoints (#762) --- package-lock.json | 18 +- package.json | 4 +- .../update-endpoints/generated/endpoints.json | 328 ++++++++++++++++++ src/generated/triggers-notification-paths.ts | 2 + 4 files changed, 341 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index f40c828f..df86c480 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.0.0-development", "license": "MIT", "dependencies": { - "@octokit/types": "^13.6.2", + "@octokit/types": "^13.7.0", "bottleneck": "^2.15.3" }, "devDependencies": { @@ -32,7 +32,7 @@ "node": ">= 18" }, "peerDependencies": { - "@octokit/core": "^6.0.0" + "@octokit/core": "^6.1.3" } }, "node_modules/@ampproject/remapping": { @@ -736,9 +736,9 @@ } }, "node_modules/@octokit/openapi-types": { - "version": "22.2.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz", - "integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg==", + "version": "23.0.1", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-23.0.1.tgz", + "integrity": "sha512-izFjMJ1sir0jn0ldEKhZ7xegCTj/ObmEDlEfpFrx4k/JyZSMRHbO3/rBwgE7f3m2DHt+RrNGIVw4wSmwnm3t/g==", "license": "MIT" }, "node_modules/@octokit/request": { @@ -779,12 +779,12 @@ "license": "MIT" }, "node_modules/@octokit/types": { - "version": "13.6.2", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.6.2.tgz", - "integrity": "sha512-WpbZfZUcZU77DrSW4wbsSgTPfKcp286q3ItaIgvSbBpZJlu6mnYXAkjZz6LVZPXkEvLIM8McanyZejKTYUHipA==", + "version": "13.7.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.7.0.tgz", + "integrity": "sha512-BXfRP+3P3IN6fd4uF3SniaHKOO4UXWBfkdR3vA8mIvaoO/wLjGN5qivUtW0QRitBHHMcfC41SLhNVYIZZE+wkA==", "license": "MIT", "dependencies": { - "@octokit/openapi-types": "^22.2.0" + "@octokit/openapi-types": "^23.0.1" } }, "node_modules/@pkgjs/parseargs": { diff --git a/package.json b/package.json index 232610e0..adf60f54 100644 --- a/package.json +++ b/package.json @@ -22,11 +22,11 @@ "author": "Simon Grondin (http://github.com/SGrondin)", "license": "MIT", "dependencies": { - "@octokit/types": "^13.6.2", + "@octokit/types": "^13.7.0", "bottleneck": "^2.15.3" }, "peerDependencies": { - "@octokit/core": "^6.0.0" + "@octokit/core": "^6.1.3" }, "devDependencies": { "@octokit/core": "^6.1.3", diff --git a/scripts/update-endpoints/generated/endpoints.json b/scripts/update-endpoints/generated/endpoints.json index a187f49d..ad5ea6b5 100644 --- a/scripts/update-endpoints/generated/endpoints.json +++ b/scripts/update-endpoints/generated/endpoints.json @@ -723,6 +723,42 @@ "url": "/orgs/{org}/announcement", "triggersNotification": null }, + { + "url": "/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/insights/api/subject-stats", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/insights/api/summary-stats", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id}", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/insights/api/summary-stats/users/{user_id}", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/insights/api/time-stats", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id}", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/insights/api/time-stats/users/{user_id}", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/insights/api/user-stats/{user_id}", + "triggersNotification": null + }, { "url": "/user/installations/{installation_id}/repositories/{repository_id}", "triggersNotification": null @@ -883,6 +919,14 @@ "url": "/enterprises/{enterprise}/audit-log", "triggersNotification": null }, + { + "url": "/enterprises/{enterprise}/settings/billing/cost-centers/{cost_center_id}/resource", + "triggersNotification": null + }, + { + "url": "/enterprises/{enterprise}/settings/billing/cost-centers", + "triggersNotification": null + }, { "url": "/enterprises/{enterprise}/settings/billing/actions", "triggersNotification": null @@ -903,6 +947,14 @@ "url": "/orgs/{org}/settings/billing/advanced-security", "triggersNotification": null }, + { + "url": "/enterprises/{enterprise}/settings/billing/usage", + "triggersNotification": null + }, + { + "url": "/organizations/{org}/settings/billing/usage", + "triggersNotification": null + }, { "url": "/enterprises/{enterprise}/settings/billing/packages", "triggersNotification": null @@ -927,6 +979,10 @@ "url": "/users/{username}/settings/billing/shared-storage", "triggersNotification": null }, + { + "url": "/enterprises/{enterprise}/settings/billing/cost-centers/{cost_center_id}/resource", + "triggersNotification": null + }, { "url": "/repos/{owner}/{repo}/check-runs", "triggersNotification": null @@ -999,10 +1055,26 @@ "url": "/classrooms", "triggersNotification": null }, + { + "url": "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits", + "triggersNotification": null + }, + { + "url": "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix", + "triggersNotification": null + }, + { + "url": "/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses", + "triggersNotification": null + }, { "url": "/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}", "triggersNotification": null }, + { + "url": "/repos/{owner}/{repo}/code-scanning/codeql/databases/{language}", + "triggersNotification": null + }, { "url": "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}", "triggersNotification": null @@ -1011,6 +1083,10 @@ "url": "/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}", "triggersNotification": null }, + { + "url": "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix", + "triggersNotification": null + }, { "url": "/repos/{owner}/{repo}/code-scanning/codeql/databases/{language}", "triggersNotification": null @@ -1023,6 +1099,14 @@ "url": "/repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}", "triggersNotification": null }, + { + "url": "/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}", + "triggersNotification": null + }, + { + "url": "/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}", + "triggersNotification": null + }, { "url": "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances", "triggersNotification": null @@ -1063,6 +1147,86 @@ "url": "/repos/{owner}/{repo}/code-scanning/sarifs", "triggersNotification": null }, + { + "url": "/orgs/{org}/code-security/configurations/{configuration_id}/attach", + "triggersNotification": null + }, + { + "url": "/enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/code-security/configurations", + "triggersNotification": null + }, + { + "url": "/enterprises/{enterprise}/code-security/configurations", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/code-security/configurations/{configuration_id}", + "triggersNotification": null + }, + { + "url": "/enterprises/{enterprise}/code-security/configurations/{configuration_id}", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/code-security/configurations/detach", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/code-security/configurations/{configuration_id}", + "triggersNotification": null + }, + { + "url": "/repos/{owner}/{repo}/code-security-configuration", + "triggersNotification": null + }, + { + "url": "/enterprises/{enterprise}/code-security/configurations", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/code-security/configurations", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/code-security/configurations/defaults", + "triggersNotification": null + }, + { + "url": "/enterprises/{enterprise}/code-security/configurations/defaults", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/code-security/configurations/{configuration_id}/repositories", + "triggersNotification": null + }, + { + "url": "/enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories", + "triggersNotification": null + }, + { + "url": "/enterprises/{enterprise}/code-security/configurations/{configuration_id}", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/code-security/configurations/{configuration_id}/defaults", + "triggersNotification": null + }, + { + "url": "/enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/code-security/configurations/{configuration_id}", + "triggersNotification": null + }, + { + "url": "/enterprises/{enterprise}/code-security/configurations/{configuration_id}", + "triggersNotification": null + }, { "url": "/codes_of_conduct", "triggersNotification": null @@ -1279,6 +1443,22 @@ "url": "/orgs/{org}/copilot/billing/selected_users", "triggersNotification": null }, + { + "url": "/enterprises/{enterprise}/copilot/metrics", + "triggersNotification": null + }, + { + "url": "/enterprises/{enterprise}/team/{team_slug}/copilot/metrics", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/copilot/metrics", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/team/{team_slug}/copilot/metrics", + "triggersNotification": null + }, { "url": "/orgs/{org}/copilot/billing", "triggersNotification": null @@ -1291,10 +1471,18 @@ "url": "/orgs/{org}/copilot/billing/seats", "triggersNotification": null }, + { + "url": "/enterprises/{enterprise}/copilot/billing/seats", + "triggersNotification": null + }, { "url": "/enterprises/{enterprise}/copilot/usage", "triggersNotification": null }, + { + "url": "/enterprises/{enterprise}/team/{team_slug}/copilot/usage", + "triggersNotification": null + }, { "url": "/orgs/{org}/copilot/usage", "triggersNotification": null @@ -1407,6 +1595,18 @@ "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "triggersNotification": null }, + { + "url": "/enterprises/{enterprise}/audit-log/streams", + "triggersNotification": null + }, + { + "url": "/enterprises/{enterprise}/properties/schema", + "triggersNotification": null + }, + { + "url": "/enterprises/{enterprise}/properties/schema/{custom_property_name}", + "triggersNotification": null + }, { "url": "/enterprises/{enterprise}/actions/runners/registration-token", "triggersNotification": null @@ -1419,6 +1619,10 @@ "url": "/enterprises/{enterprise}/actions/runner-groups", "triggersNotification": null }, + { + "url": "/enterprises/{enterprise}/audit-log/streams/{stream_id}", + "triggersNotification": null + }, { "url": "/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}", "triggersNotification": null @@ -1451,10 +1655,26 @@ "url": "/enterprises/{enterprise}/audit-log", "triggersNotification": null }, + { + "url": "/enterprises/{enterprise}/audit-log/stream-key", + "triggersNotification": null + }, + { + "url": "/enterprises/{enterprise}/audit-log/streams", + "triggersNotification": null + }, { "url": "/enterprises/{enterprise}/consumed-licenses", "triggersNotification": null }, + { + "url": "/enterprises/{enterprise}/properties/schema", + "triggersNotification": null + }, + { + "url": "/enterprises/{enterprise}/properties/schema/{custom_property_name}", + "triggersNotification": null + }, { "url": "/enterprises/{enterprise}/actions/permissions", "triggersNotification": null @@ -1463,6 +1683,10 @@ "url": "/enterprises/{enterprise}/license-sync-status", "triggersNotification": null }, + { + "url": "/enterprises/{enterprise}/audit-log/streams/{stream_id}", + "triggersNotification": null + }, { "url": "/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}", "triggersNotification": null @@ -1535,6 +1759,10 @@ "url": "/enterprises/{enterprise}/actions/runners/{runner_id}/labels/{name}", "triggersNotification": null }, + { + "url": "/enterprises/{enterprise}/properties/schema/{custom_property_name}", + "triggersNotification": null + }, { "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}", "triggersNotification": null @@ -1583,6 +1811,10 @@ "url": "/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}", "triggersNotification": null }, + { + "url": "/enterprises/{enterprise}/audit-log/streams/{stream_id}", + "triggersNotification": null + }, { "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", "triggersNotification": null @@ -1783,6 +2015,10 @@ "url": "/repos/{owner}/{repo}/issues/{issue_number}/labels", "triggersNotification": null }, + { + "url": "/repos/{owner}/{repo}/issues/{issue_number}/sub_issues", + "triggersNotification": null + }, { "url": "/repos/{owner}/{repo}/assignees/{assignee}", "triggersNotification": null @@ -1895,6 +2131,10 @@ "url": "/repos/{owner}/{repo}/milestones", "triggersNotification": null }, + { + "url": "/repos/{owner}/{repo}/issues/{issue_number}/sub_issues", + "triggersNotification": null + }, { "url": "/repos/{owner}/{repo}/issues/{issue_number}/lock", "triggersNotification": null @@ -1911,6 +2151,14 @@ "url": "/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}", "triggersNotification": null }, + { + "url": "/repos/{owner}/{repo}/issues/{issue_number}/sub_issue", + "triggersNotification": true + }, + { + "url": "/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority", + "triggersNotification": true + }, { "url": "/repos/{owner}/{repo}/issues/{issue_number}/labels", "triggersNotification": null @@ -2223,6 +2471,10 @@ "url": "/orgs/{org}/installations", "triggersNotification": null }, + { + "url": "/orgs/{org}/attestations/{subject_digest}", + "triggersNotification": null + }, { "url": "/orgs/{org}/blocks", "triggersNotification": null @@ -2311,6 +2563,10 @@ "url": "/orgs/{org}/public_members", "triggersNotification": null }, + { + "url": "/orgs/{org}/bypass-requests/push-rules", + "triggersNotification": null + }, { "url": "/orgs/{org}/repository-fine-grained-permissions", "triggersNotification": null @@ -2555,6 +2811,30 @@ "url": "/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore", "triggersNotification": null }, + { + "url": "/orgs/{org}/private-registries", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/private-registries/{secret_name}", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/private-registries/{secret_name}", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/private-registries/public-key", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/private-registries", + "triggersNotification": null + }, + { + "url": "/orgs/{org}/private-registries/{secret_name}", + "triggersNotification": null + }, { "url": "/projects/{project_id}/collaborators/{username}", "triggersNotification": null @@ -2927,6 +3207,10 @@ "url": "/repos/{owner}/{repo}/compare/{basehead}", "triggersNotification": null }, + { + "url": "/repos/{owner}/{repo}/attestations", + "triggersNotification": null + }, { "url": "/repos/{owner}/{repo}/autolinks", "triggersNotification": null @@ -2967,6 +3251,10 @@ "url": "/repos/{owner}/{repo}/dispatches", "triggersNotification": null }, + { + "url": "/enterprises/{enterprise}/rulesets", + "triggersNotification": null + }, { "url": "/user/repos", "triggersNotification": null @@ -3075,6 +3363,10 @@ "url": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}", "triggersNotification": null }, + { + "url": "/enterprises/{enterprise}/rulesets/{ruleset_id}", + "triggersNotification": null + }, { "url": "/repos/{owner}/{repo}/contents/{path}", "triggersNotification": null @@ -3287,6 +3579,10 @@ "url": "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}", "triggersNotification": null }, + { + "url": "/enterprises/{enterprise}/rulesets/{ruleset_id}", + "triggersNotification": null + }, { "url": "/repos/{owner}/{repo}/environments/{environment_name}", "triggersNotification": null @@ -3363,6 +3659,10 @@ "url": "/repos/{owner}/{repo}/releases/tags/{tag}", "triggersNotification": null }, + { + "url": "/repos/{owner}/{repo}/bypass-requests/push-rules/{bypass_request_number}", + "triggersNotification": null + }, { "url": "/repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}", "triggersNotification": null @@ -3419,6 +3719,10 @@ "url": "/repos/{owner}/{repo}/activity", "triggersNotification": null }, + { + "url": "/repos/{owner}/{repo}/attestations/{subject_digest}", + "triggersNotification": null + }, { "url": "/repos/{owner}/{repo}/autolinks", "triggersNotification": null @@ -3523,6 +3827,10 @@ "url": "/repos/{owner}/{repo}/releases", "triggersNotification": null }, + { + "url": "/repos/{owner}/{repo}/bypass-requests/push-rules", + "triggersNotification": null + }, { "url": "/repos/{owner}/{repo}/tags/protection", "triggersNotification": null @@ -3639,6 +3947,10 @@ "url": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}", "triggersNotification": null }, + { + "url": "/enterprises/{enterprise}/rulesets/{ruleset_id}", + "triggersNotification": null + }, { "url": "/repos/{owner}/{repo}/pages", "triggersNotification": null @@ -3739,10 +4051,18 @@ "url": "/search/users", "triggersNotification": null }, + { + "url": "/repos/{owner}/{repo}/secret-scanning/push-protection-bypasses", + "triggersNotification": null + }, { "url": "/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}", "triggersNotification": null }, + { + "url": "/repos/{owner}/{repo}/secret-scanning/scan-history", + "triggersNotification": null + }, { "url": "/enterprises/{enterprise}/code_security_and_analysis", "triggersNotification": null @@ -4183,6 +4503,10 @@ "url": "/user", "triggersNotification": null }, + { + "url": "/user/{account_id}", + "triggersNotification": null + }, { "url": "/users/{username}", "triggersNotification": null @@ -4215,6 +4539,10 @@ "url": "/users", "triggersNotification": null }, + { + "url": "/users/{username}/attestations/{subject_digest}", + "triggersNotification": null + }, { "url": "/user/blocks", "triggersNotification": null diff --git a/src/generated/triggers-notification-paths.ts b/src/generated/triggers-notification-paths.ts index 6ab3df29..3b9f29ab 100644 --- a/src/generated/triggers-notification-paths.ts +++ b/src/generated/triggers-notification-paths.ts @@ -7,6 +7,8 @@ export default [ "/repos/{owner}/{repo}/commits/{commit_sha}/comments", "/repos/{owner}/{repo}/issues", "/repos/{owner}/{repo}/issues/{issue_number}/comments", + "/repos/{owner}/{repo}/issues/{issue_number}/sub_issue", + "/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority", "/repos/{owner}/{repo}/pulls", "/repos/{owner}/{repo}/pulls/{pull_number}/comments", "/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies",