@octokit/openapi 5.7.0 → 5.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generated/api.github.com.deref.json +31 -3
- package/generated/api.github.com.json +16 -5
- package/generated/ghes-2.22-diff-to-ghes-3.0.deref.json +1 -1
- package/generated/ghes-2.22-diff-to-ghes-3.0.json +1 -1
- package/generated/ghes-2.22.deref.json +1 -1
- package/generated/ghes-2.22.json +1 -1
- package/generated/ghes-3.0-anicca-diff-to-ghes-3.1.deref.json +145 -0
- package/generated/ghes-3.0-diff-to-ghes-3.1.deref.json +14378 -3642
- package/generated/ghes-3.0-diff-to-ghes-3.1.json +1522 -240
- package/generated/ghes-3.0.deref.json +47 -26
- package/generated/ghes-3.0.json +39 -29
- package/generated/ghes-3.1-anicca-diff-to-ghes-3.2.deref.json +1292 -111
- package/generated/ghes-3.1-diff-to-ghes-3.2.deref.json +72178 -24463
- package/generated/ghes-3.1-diff-to-ghes-3.2.json +8486 -3212
- package/generated/ghes-3.1.deref.json +78 -57
- package/generated/ghes-3.1.json +70 -60
- package/generated/ghes-3.2-anicca-diff-to-api.github.com.deref.json +152 -0
- package/generated/ghes-3.2-diff-to-api.github.com.deref.json +3162 -894
- package/generated/ghes-3.2-diff-to-api.github.com.json +931 -100
- package/generated/ghes-3.2.deref.json +48 -27
- package/generated/ghes-3.2.json +54 -30
- package/generated/github.ae-anicca-diff-to-api.github.com.deref.json +52 -22
- package/generated/github.ae-diff-to-api.github.com.deref.json +4920 -29
- package/generated/github.ae-diff-to-api.github.com.json +2883 -282
- package/generated/github.ae.deref.json +42 -10
- package/generated/github.ae.json +26 -11
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.8.0",
|
|
5
5
|
"title": "GitHub's official OpenAPI spec + Octokit extension",
|
|
6
6
|
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
|
|
7
7
|
"license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
|
|
@@ -2604,6 +2604,41 @@
|
|
|
2604
2604
|
"x-octokit": {
|
|
2605
2605
|
"diff": { "api.github.com.json": { "type": "changed" } }
|
|
2606
2606
|
}
|
|
2607
|
+
},
|
|
2608
|
+
"put": {
|
|
2609
|
+
"summary": "Set allowed actions for an enterprise",
|
|
2610
|
+
"description": "Sets the actions that are allowed in an enterprise. To use this endpoint, the enterprise permission policy for `allowed_actions` must be configured to `selected`. For more information, see \"[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
|
|
2611
|
+
"operationId": "enterprise-admin/set-allowed-actions-enterprise",
|
|
2612
|
+
"tags": ["enterprise-admin"],
|
|
2613
|
+
"externalDocs": {
|
|
2614
|
+
"description": "API method documentation",
|
|
2615
|
+
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/enterprise-admin#set-allowed-actions-for-an-enterprise"
|
|
2616
|
+
},
|
|
2617
|
+
"parameters": [{ "$ref": "#/components/parameters/enterprise" }],
|
|
2618
|
+
"responses": { "204": { "description": "Response" } },
|
|
2619
|
+
"requestBody": {
|
|
2620
|
+
"required": true,
|
|
2621
|
+
"content": {
|
|
2622
|
+
"application/json": {
|
|
2623
|
+
"schema": { "$ref": "#/components/schemas/selected-actions" },
|
|
2624
|
+
"examples": {
|
|
2625
|
+
"selected_actions": {
|
|
2626
|
+
"$ref": "#/components/examples/selected-actions"
|
|
2627
|
+
}
|
|
2628
|
+
}
|
|
2629
|
+
}
|
|
2630
|
+
}
|
|
2631
|
+
},
|
|
2632
|
+
"x-github": {
|
|
2633
|
+
"enabledForGitHubApps": false,
|
|
2634
|
+
"githubCloudOnly": false,
|
|
2635
|
+
"previews": [],
|
|
2636
|
+
"category": "enterprise-admin",
|
|
2637
|
+
"subcategory": "actions"
|
|
2638
|
+
},
|
|
2639
|
+
"x-octokit": {
|
|
2640
|
+
"diff": { "api.github.com.json": { "type": "changed" } }
|
|
2641
|
+
}
|
|
2607
2642
|
}
|
|
2608
2643
|
},
|
|
2609
2644
|
"/meta": {
|
|
@@ -2643,6 +2678,159 @@
|
|
|
2643
2678
|
}
|
|
2644
2679
|
}
|
|
2645
2680
|
},
|
|
2681
|
+
"/orgs/{org}": {
|
|
2682
|
+
"patch": {
|
|
2683
|
+
"summary": "Update an organization",
|
|
2684
|
+
"description": "**Parameter Deprecation Notice:** GitHub Enterprise Server will replace and discontinue `members_allowed_repository_creation_type` in favor of more granular permissions. The new input parameters are `members_can_create_public_repositories`, `members_can_create_private_repositories` for all organizations and `members_can_create_internal_repositories` for organizations associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes).\n\nEnables an authenticated organization owner with the `admin:org` scope to update the organization's profile and member privileges.",
|
|
2685
|
+
"tags": ["orgs"],
|
|
2686
|
+
"operationId": "orgs/update",
|
|
2687
|
+
"externalDocs": {
|
|
2688
|
+
"description": "API method documentation",
|
|
2689
|
+
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/orgs/#update-an-organization"
|
|
2690
|
+
},
|
|
2691
|
+
"parameters": [{ "$ref": "#/components/parameters/org" }],
|
|
2692
|
+
"requestBody": {
|
|
2693
|
+
"content": {
|
|
2694
|
+
"application/json": {
|
|
2695
|
+
"schema": {
|
|
2696
|
+
"type": "object",
|
|
2697
|
+
"properties": {
|
|
2698
|
+
"billing_email": {
|
|
2699
|
+
"type": "string",
|
|
2700
|
+
"description": "Billing email address. This address is not publicized."
|
|
2701
|
+
},
|
|
2702
|
+
"company": {
|
|
2703
|
+
"type": "string",
|
|
2704
|
+
"description": "The company name."
|
|
2705
|
+
},
|
|
2706
|
+
"email": {
|
|
2707
|
+
"type": "string",
|
|
2708
|
+
"description": "The publicly visible email address."
|
|
2709
|
+
},
|
|
2710
|
+
"twitter_username": {
|
|
2711
|
+
"type": "string",
|
|
2712
|
+
"description": "The Twitter username of the company."
|
|
2713
|
+
},
|
|
2714
|
+
"location": {
|
|
2715
|
+
"type": "string",
|
|
2716
|
+
"description": "The location."
|
|
2717
|
+
},
|
|
2718
|
+
"name": {
|
|
2719
|
+
"type": "string",
|
|
2720
|
+
"description": "The shorthand name of the company."
|
|
2721
|
+
},
|
|
2722
|
+
"description": {
|
|
2723
|
+
"type": "string",
|
|
2724
|
+
"description": "The description of the company."
|
|
2725
|
+
},
|
|
2726
|
+
"has_organization_projects": {
|
|
2727
|
+
"type": "boolean",
|
|
2728
|
+
"description": "Toggles whether an organization can use organization projects."
|
|
2729
|
+
},
|
|
2730
|
+
"has_repository_projects": {
|
|
2731
|
+
"type": "boolean",
|
|
2732
|
+
"description": "Toggles whether repositories that belong to the organization can use repository projects."
|
|
2733
|
+
},
|
|
2734
|
+
"default_repository_permission": {
|
|
2735
|
+
"type": "string",
|
|
2736
|
+
"description": "Default permission level members have for organization repositories: \n\\* `read` - can pull, but not push to or administer this repository. \n\\* `write` - can pull and push, but not administer this repository. \n\\* `admin` - can pull, push, and administer this repository. \n\\* `none` - no permissions granted by default.",
|
|
2737
|
+
"enum": ["read", "write", "admin", "none"],
|
|
2738
|
+
"default": "read"
|
|
2739
|
+
},
|
|
2740
|
+
"members_can_create_repositories": {
|
|
2741
|
+
"type": "boolean",
|
|
2742
|
+
"description": "Toggles the ability of non-admin organization members to create repositories. Can be one of: \n\\* `true` - all organization members can create repositories. \n\\* `false` - only organization owners can create repositories. \nDefault: `true` \n**Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details.",
|
|
2743
|
+
"default": true
|
|
2744
|
+
},
|
|
2745
|
+
"members_can_create_internal_repositories": {
|
|
2746
|
+
"type": "boolean",
|
|
2747
|
+
"description": "Toggles whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. Can be one of: \n\\* `true` - all organization members can create internal repositories. \n\\* `false` - only organization owners can create internal repositories. \nDefault: `true`. For more information, see \"[Restricting repository creation in your organization](https://help.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation."
|
|
2748
|
+
},
|
|
2749
|
+
"members_can_create_private_repositories": {
|
|
2750
|
+
"type": "boolean",
|
|
2751
|
+
"description": "Toggles whether organization members can create private repositories, which are visible to organization members with permission. Can be one of: \n\\* `true` - all organization members can create private repositories. \n\\* `false` - only organization owners can create private repositories. \nDefault: `true`. For more information, see \"[Restricting repository creation in your organization](https://help.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation."
|
|
2752
|
+
},
|
|
2753
|
+
"members_can_create_public_repositories": {
|
|
2754
|
+
"type": "boolean",
|
|
2755
|
+
"description": "Toggles whether organization members can create public repositories, which are visible to anyone. Can be one of: \n\\* `true` - all organization members can create public repositories. \n\\* `false` - only organization owners can create public repositories. \nDefault: `true`. For more information, see \"[Restricting repository creation in your organization](https://help.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation."
|
|
2756
|
+
},
|
|
2757
|
+
"members_allowed_repository_creation_type": {
|
|
2758
|
+
"type": "string",
|
|
2759
|
+
"description": "Specifies which types of repositories non-admin organization members can create. Can be one of: \n\\* `all` - all organization members can create public and private repositories. \n\\* `private` - members can create private repositories. This option is only available to repositories that are part of an organization on GitHub Enterprise Cloud. \n\\* `none` - only admin members can create repositories. \n**Note:** This parameter is deprecated and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details.",
|
|
2760
|
+
"enum": ["all", "private", "none"]
|
|
2761
|
+
},
|
|
2762
|
+
"members_can_create_pages": {
|
|
2763
|
+
"type": "boolean",
|
|
2764
|
+
"description": "Toggles whether organization members can create GitHub Pages sites. Can be one of: \n\\* `true` - all organization members can create GitHub Pages sites. \n\\* `false` - no organization members can create GitHub Pages sites. Existing published sites will not be impacted.",
|
|
2765
|
+
"default": true
|
|
2766
|
+
},
|
|
2767
|
+
"blog": {
|
|
2768
|
+
"type": "string",
|
|
2769
|
+
"example": "\"http://github.blog\""
|
|
2770
|
+
}
|
|
2771
|
+
}
|
|
2772
|
+
},
|
|
2773
|
+
"example": {
|
|
2774
|
+
"billing_email": "mona@github.com",
|
|
2775
|
+
"company": "GitHub",
|
|
2776
|
+
"email": "mona@github.com",
|
|
2777
|
+
"twitter_username": "github",
|
|
2778
|
+
"location": "San Francisco",
|
|
2779
|
+
"name": "github",
|
|
2780
|
+
"description": "GitHub, the company.",
|
|
2781
|
+
"default_repository_permission": "read",
|
|
2782
|
+
"members_can_create_repositories": true,
|
|
2783
|
+
"members_allowed_repository_creation_type": "all"
|
|
2784
|
+
}
|
|
2785
|
+
}
|
|
2786
|
+
}
|
|
2787
|
+
},
|
|
2788
|
+
"responses": {
|
|
2789
|
+
"200": {
|
|
2790
|
+
"description": "Response",
|
|
2791
|
+
"content": {
|
|
2792
|
+
"application/json": {
|
|
2793
|
+
"schema": { "$ref": "#/components/schemas/organization-full" },
|
|
2794
|
+
"examples": {
|
|
2795
|
+
"default": {
|
|
2796
|
+
"$ref": "#/components/examples/organization-full"
|
|
2797
|
+
}
|
|
2798
|
+
}
|
|
2799
|
+
}
|
|
2800
|
+
}
|
|
2801
|
+
},
|
|
2802
|
+
"409": { "$ref": "#/components/responses/conflict" },
|
|
2803
|
+
"422": {
|
|
2804
|
+
"description": "Validation failed",
|
|
2805
|
+
"content": {
|
|
2806
|
+
"application/json": {
|
|
2807
|
+
"schema": {
|
|
2808
|
+
"oneOf": [
|
|
2809
|
+
{ "$ref": "#/components/schemas/validation-error" },
|
|
2810
|
+
{ "$ref": "#/components/schemas/validation-error-simple" }
|
|
2811
|
+
]
|
|
2812
|
+
}
|
|
2813
|
+
}
|
|
2814
|
+
}
|
|
2815
|
+
}
|
|
2816
|
+
},
|
|
2817
|
+
"x-github": {
|
|
2818
|
+
"githubCloudOnly": false,
|
|
2819
|
+
"enabledForGitHubApps": true,
|
|
2820
|
+
"category": "orgs",
|
|
2821
|
+
"previews": [
|
|
2822
|
+
{
|
|
2823
|
+
"required": false,
|
|
2824
|
+
"name": "surtur",
|
|
2825
|
+
"note": "New repository creation permissions are available to preview. You can now use `members_can_create_public_repositories`, `members_can_create_private_repositories`, and `members_can_create_internal_repositories`. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. These parameters provide more granular permissions to configure the type of repositories organization members can create.\n\nTo access these new parameters during the preview period, you must provide a custom [media type](https://docs.github.com/enterprise-server@3.2/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.surtur-preview+json\n```"
|
|
2826
|
+
}
|
|
2827
|
+
]
|
|
2828
|
+
},
|
|
2829
|
+
"x-octokit": {
|
|
2830
|
+
"diff": { "api.github.com.json": { "type": "changed" } }
|
|
2831
|
+
}
|
|
2832
|
+
}
|
|
2833
|
+
},
|
|
2646
2834
|
"/orgs/{org}/actions/permissions/selected-actions": {
|
|
2647
2835
|
"get": {
|
|
2648
2836
|
"summary": "Get allowed actions for an organization",
|
|
@@ -2679,6 +2867,40 @@
|
|
|
2679
2867
|
"x-octokit": {
|
|
2680
2868
|
"diff": { "api.github.com.json": { "type": "changed" } }
|
|
2681
2869
|
}
|
|
2870
|
+
},
|
|
2871
|
+
"put": {
|
|
2872
|
+
"summary": "Set allowed actions for an organization",
|
|
2873
|
+
"description": "Sets the actions that are allowed in an organization. To use this endpoint, the organization permission policy for `allowed_actions` must be configured to `selected`. For more information, see \"[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization).\"\n\nIf the organization belongs to an enterprise that has `selected` actions set at the enterprise level, then you cannot override any of the enterprise's allowed actions settings.\n\nTo use the `patterns_allowed` setting for private repositories, the organization must belong to an enterprise. If the organization does not belong to an enterprise, then the `patterns_allowed` setting only applies to public repositories in the organization.\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API.",
|
|
2874
|
+
"operationId": "actions/set-allowed-actions-organization",
|
|
2875
|
+
"tags": ["actions"],
|
|
2876
|
+
"externalDocs": {
|
|
2877
|
+
"description": "API method documentation",
|
|
2878
|
+
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/actions#set-allowed-actions-for-an-organization"
|
|
2879
|
+
},
|
|
2880
|
+
"parameters": [{ "$ref": "#/components/parameters/org" }],
|
|
2881
|
+
"responses": { "204": { "description": "Response" } },
|
|
2882
|
+
"requestBody": {
|
|
2883
|
+
"content": {
|
|
2884
|
+
"application/json": {
|
|
2885
|
+
"schema": { "$ref": "#/components/schemas/selected-actions" },
|
|
2886
|
+
"examples": {
|
|
2887
|
+
"selected_actions": {
|
|
2888
|
+
"$ref": "#/components/examples/selected-actions"
|
|
2889
|
+
}
|
|
2890
|
+
}
|
|
2891
|
+
}
|
|
2892
|
+
}
|
|
2893
|
+
},
|
|
2894
|
+
"x-github": {
|
|
2895
|
+
"enabledForGitHubApps": true,
|
|
2896
|
+
"githubCloudOnly": false,
|
|
2897
|
+
"previews": [],
|
|
2898
|
+
"category": "actions",
|
|
2899
|
+
"subcategory": "permissions"
|
|
2900
|
+
},
|
|
2901
|
+
"x-octokit": {
|
|
2902
|
+
"diff": { "api.github.com.json": { "type": "changed" } }
|
|
2903
|
+
}
|
|
2682
2904
|
}
|
|
2683
2905
|
},
|
|
2684
2906
|
"/orgs/{org}/pre-receive-hooks": {
|
|
@@ -2983,6 +3205,43 @@
|
|
|
2983
3205
|
"x-octokit": {
|
|
2984
3206
|
"diff": { "api.github.com.json": { "type": "changed" } }
|
|
2985
3207
|
}
|
|
3208
|
+
},
|
|
3209
|
+
"put": {
|
|
3210
|
+
"summary": "Set allowed actions for a repository",
|
|
3211
|
+
"description": "Sets the actions that are allowed in a repository. To use this endpoint, the repository permission policy for `allowed_actions` must be configured to `selected`. For more information, see \"[Set GitHub Actions permissions for a repository](#set-github-actions-permissions-for-a-repository).\"\n\nIf the repository belongs to an organization or enterprise that has `selected` actions set at the organization or enterprise levels, then you cannot override any of the allowed actions settings.\n\nTo use the `patterns_allowed` setting for private repositories, the repository must belong to an enterprise. If the repository does not belong to an enterprise, then the `patterns_allowed` setting only applies to public repositories.\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration` repository permission to use this API.",
|
|
3212
|
+
"operationId": "actions/set-allowed-actions-repository",
|
|
3213
|
+
"tags": ["actions"],
|
|
3214
|
+
"externalDocs": {
|
|
3215
|
+
"description": "API method documentation",
|
|
3216
|
+
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/actions#set-allowed-actions-for-a-repository"
|
|
3217
|
+
},
|
|
3218
|
+
"parameters": [
|
|
3219
|
+
{ "$ref": "#/components/parameters/owner" },
|
|
3220
|
+
{ "$ref": "#/components/parameters/repo" }
|
|
3221
|
+
],
|
|
3222
|
+
"responses": { "204": { "description": "Response" } },
|
|
3223
|
+
"requestBody": {
|
|
3224
|
+
"content": {
|
|
3225
|
+
"application/json": {
|
|
3226
|
+
"schema": { "$ref": "#/components/schemas/selected-actions" },
|
|
3227
|
+
"examples": {
|
|
3228
|
+
"selected_actions": {
|
|
3229
|
+
"$ref": "#/components/examples/selected-actions"
|
|
3230
|
+
}
|
|
3231
|
+
}
|
|
3232
|
+
}
|
|
3233
|
+
}
|
|
3234
|
+
},
|
|
3235
|
+
"x-github": {
|
|
3236
|
+
"enabledForGitHubApps": true,
|
|
3237
|
+
"githubCloudOnly": false,
|
|
3238
|
+
"previews": [],
|
|
3239
|
+
"category": "actions",
|
|
3240
|
+
"subcategory": "permissions"
|
|
3241
|
+
},
|
|
3242
|
+
"x-octokit": {
|
|
3243
|
+
"diff": { "api.github.com.json": { "type": "changed" } }
|
|
3244
|
+
}
|
|
2986
3245
|
}
|
|
2987
3246
|
},
|
|
2988
3247
|
"/repos/{owner}/{repo}/actions/runs/{run_id}/jobs": {
|
|
@@ -3104,6 +3363,75 @@
|
|
|
3104
3363
|
],
|
|
3105
3364
|
"diff": { "api.github.com.json": { "type": "changed" } }
|
|
3106
3365
|
}
|
|
3366
|
+
},
|
|
3367
|
+
"patch": {
|
|
3368
|
+
"summary": "Update a code scanning alert",
|
|
3369
|
+
"description": "Updates the status of a single code scanning alert. You must use an access token with the `security_events` scope to use this endpoint. GitHub Apps must have the `security_events` write permission to use this endpoint.",
|
|
3370
|
+
"operationId": "code-scanning/update-alert",
|
|
3371
|
+
"tags": ["code-scanning"],
|
|
3372
|
+
"externalDocs": {
|
|
3373
|
+
"description": "API method documentation",
|
|
3374
|
+
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/code-scanning#update-a-code-scanning-alert"
|
|
3375
|
+
},
|
|
3376
|
+
"parameters": [
|
|
3377
|
+
{ "$ref": "#/components/parameters/owner" },
|
|
3378
|
+
{ "$ref": "#/components/parameters/repo" },
|
|
3379
|
+
{ "$ref": "#/components/parameters/alert-number" }
|
|
3380
|
+
],
|
|
3381
|
+
"requestBody": {
|
|
3382
|
+
"required": true,
|
|
3383
|
+
"content": {
|
|
3384
|
+
"application/json": {
|
|
3385
|
+
"schema": {
|
|
3386
|
+
"type": "object",
|
|
3387
|
+
"properties": {
|
|
3388
|
+
"state": {
|
|
3389
|
+
"$ref": "#/components/schemas/code-scanning-alert-set-state"
|
|
3390
|
+
},
|
|
3391
|
+
"dismissed_reason": {
|
|
3392
|
+
"$ref": "#/components/schemas/code-scanning-alert-dismissed-reason"
|
|
3393
|
+
}
|
|
3394
|
+
},
|
|
3395
|
+
"required": ["state"]
|
|
3396
|
+
},
|
|
3397
|
+
"example": {
|
|
3398
|
+
"state": "dismissed",
|
|
3399
|
+
"dismissed_reason": "false positive"
|
|
3400
|
+
}
|
|
3401
|
+
}
|
|
3402
|
+
}
|
|
3403
|
+
},
|
|
3404
|
+
"responses": {
|
|
3405
|
+
"200": {
|
|
3406
|
+
"description": "Response",
|
|
3407
|
+
"content": {
|
|
3408
|
+
"application/json": {
|
|
3409
|
+
"schema": {
|
|
3410
|
+
"$ref": "#/components/schemas/code-scanning-alert"
|
|
3411
|
+
},
|
|
3412
|
+
"examples": {
|
|
3413
|
+
"default": {
|
|
3414
|
+
"$ref": "#/components/examples/code-scanning-alert-dismissed"
|
|
3415
|
+
}
|
|
3416
|
+
}
|
|
3417
|
+
}
|
|
3418
|
+
}
|
|
3419
|
+
},
|
|
3420
|
+
"403": {
|
|
3421
|
+
"$ref": "#/components/responses/code_scanning_forbidden_write"
|
|
3422
|
+
},
|
|
3423
|
+
"404": { "$ref": "#/components/responses/not_found" },
|
|
3424
|
+
"503": { "$ref": "#/components/responses/service_unavailable" }
|
|
3425
|
+
},
|
|
3426
|
+
"x-github": {
|
|
3427
|
+
"enabledForGitHubApps": true,
|
|
3428
|
+
"githubCloudOnly": false,
|
|
3429
|
+
"previews": [],
|
|
3430
|
+
"category": "code-scanning"
|
|
3431
|
+
},
|
|
3432
|
+
"x-octokit": {
|
|
3433
|
+
"diff": { "api.github.com.json": { "type": "changed" } }
|
|
3434
|
+
}
|
|
3107
3435
|
}
|
|
3108
3436
|
},
|
|
3109
3437
|
"/repos/{owner}/{repo}/code-scanning/analyses": {
|
|
@@ -3468,24 +3796,116 @@
|
|
|
3468
3796
|
{ "$ref": "#/components/parameters/page" }
|
|
3469
3797
|
],
|
|
3470
3798
|
"responses": {
|
|
3471
|
-
"200": {
|
|
3799
|
+
"200": {
|
|
3800
|
+
"description": "Response",
|
|
3801
|
+
"content": {
|
|
3802
|
+
"application/json": {
|
|
3803
|
+
"schema": {
|
|
3804
|
+
"type": "array",
|
|
3805
|
+
"items": { "$ref": "#/components/schemas/release" }
|
|
3806
|
+
},
|
|
3807
|
+
"examples": {
|
|
3808
|
+
"default": { "$ref": "#/components/examples/release-items" }
|
|
3809
|
+
}
|
|
3810
|
+
}
|
|
3811
|
+
},
|
|
3812
|
+
"headers": { "Link": { "$ref": "#/components/headers/link" } }
|
|
3813
|
+
},
|
|
3814
|
+
"404": { "$ref": "#/components/responses/not_found" }
|
|
3815
|
+
},
|
|
3816
|
+
"x-github": {
|
|
3817
|
+
"githubCloudOnly": false,
|
|
3818
|
+
"enabledForGitHubApps": true,
|
|
3819
|
+
"previews": [],
|
|
3820
|
+
"category": "repos",
|
|
3821
|
+
"subcategory": "releases"
|
|
3822
|
+
},
|
|
3823
|
+
"x-octokit": {
|
|
3824
|
+
"diff": { "api.github.com.json": { "type": "changed" } }
|
|
3825
|
+
}
|
|
3826
|
+
},
|
|
3827
|
+
"post": {
|
|
3828
|
+
"summary": "Create a release",
|
|
3829
|
+
"description": "Users with push access to the repository can create a release.\n\nThis endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/enterprise-server@3.2/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/enterprise-server@3.2/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)\" for details.",
|
|
3830
|
+
"tags": ["repos"],
|
|
3831
|
+
"operationId": "repos/create-release",
|
|
3832
|
+
"externalDocs": {
|
|
3833
|
+
"description": "API method documentation",
|
|
3834
|
+
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/repos#create-a-release"
|
|
3835
|
+
},
|
|
3836
|
+
"parameters": [
|
|
3837
|
+
{ "$ref": "#/components/parameters/owner" },
|
|
3838
|
+
{ "$ref": "#/components/parameters/repo" }
|
|
3839
|
+
],
|
|
3840
|
+
"requestBody": {
|
|
3841
|
+
"required": true,
|
|
3842
|
+
"content": {
|
|
3843
|
+
"application/json": {
|
|
3844
|
+
"schema": {
|
|
3845
|
+
"type": "object",
|
|
3846
|
+
"properties": {
|
|
3847
|
+
"tag_name": {
|
|
3848
|
+
"type": "string",
|
|
3849
|
+
"description": "The name of the tag."
|
|
3850
|
+
},
|
|
3851
|
+
"target_commitish": {
|
|
3852
|
+
"type": "string",
|
|
3853
|
+
"description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`)."
|
|
3854
|
+
},
|
|
3855
|
+
"name": {
|
|
3856
|
+
"type": "string",
|
|
3857
|
+
"description": "The name of the release."
|
|
3858
|
+
},
|
|
3859
|
+
"body": {
|
|
3860
|
+
"type": "string",
|
|
3861
|
+
"description": "Text describing the contents of the tag."
|
|
3862
|
+
},
|
|
3863
|
+
"draft": {
|
|
3864
|
+
"type": "boolean",
|
|
3865
|
+
"description": "`true` to create a draft (unpublished) release, `false` to create a published one.",
|
|
3866
|
+
"default": false
|
|
3867
|
+
},
|
|
3868
|
+
"prerelease": {
|
|
3869
|
+
"type": "boolean",
|
|
3870
|
+
"description": "`true` to identify the release as a prerelease. `false` to identify the release as a full release.",
|
|
3871
|
+
"default": false
|
|
3872
|
+
}
|
|
3873
|
+
},
|
|
3874
|
+
"required": ["tag_name"]
|
|
3875
|
+
},
|
|
3876
|
+
"example": {
|
|
3877
|
+
"tag_name": "v1.0.0",
|
|
3878
|
+
"target_commitish": "master",
|
|
3879
|
+
"name": "v1.0.0",
|
|
3880
|
+
"body": "Description of the release",
|
|
3881
|
+
"draft": false,
|
|
3882
|
+
"prerelease": false
|
|
3883
|
+
}
|
|
3884
|
+
}
|
|
3885
|
+
}
|
|
3886
|
+
},
|
|
3887
|
+
"responses": {
|
|
3888
|
+
"201": {
|
|
3472
3889
|
"description": "Response",
|
|
3473
3890
|
"content": {
|
|
3474
3891
|
"application/json": {
|
|
3475
|
-
"schema": {
|
|
3476
|
-
"type": "array",
|
|
3477
|
-
"items": { "$ref": "#/components/schemas/release" }
|
|
3478
|
-
},
|
|
3892
|
+
"schema": { "$ref": "#/components/schemas/release" },
|
|
3479
3893
|
"examples": {
|
|
3480
|
-
"default": { "$ref": "#/components/examples/release
|
|
3894
|
+
"default": { "$ref": "#/components/examples/release" }
|
|
3481
3895
|
}
|
|
3482
3896
|
}
|
|
3483
3897
|
},
|
|
3484
|
-
"headers": {
|
|
3898
|
+
"headers": {
|
|
3899
|
+
"Location": {
|
|
3900
|
+
"example": "https://api.github.com/repos/octocat/Hello-World/releases/1",
|
|
3901
|
+
"schema": { "type": "string" }
|
|
3902
|
+
}
|
|
3903
|
+
}
|
|
3485
3904
|
},
|
|
3486
|
-
"
|
|
3905
|
+
"422": { "$ref": "#/components/responses/validation_failed" }
|
|
3487
3906
|
},
|
|
3488
3907
|
"x-github": {
|
|
3908
|
+
"triggersNotification": true,
|
|
3489
3909
|
"githubCloudOnly": false,
|
|
3490
3910
|
"enabledForGitHubApps": true,
|
|
3491
3911
|
"previews": [],
|
|
@@ -3623,6 +4043,87 @@
|
|
|
3623
4043
|
"x-octokit": {
|
|
3624
4044
|
"diff": { "api.github.com.json": { "type": "changed" } }
|
|
3625
4045
|
}
|
|
4046
|
+
},
|
|
4047
|
+
"patch": {
|
|
4048
|
+
"summary": "Update a release",
|
|
4049
|
+
"description": "Users with push access to the repository can edit a release.",
|
|
4050
|
+
"tags": ["repos"],
|
|
4051
|
+
"operationId": "repos/update-release",
|
|
4052
|
+
"externalDocs": {
|
|
4053
|
+
"description": "API method documentation",
|
|
4054
|
+
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/repos#update-a-release"
|
|
4055
|
+
},
|
|
4056
|
+
"parameters": [
|
|
4057
|
+
{ "$ref": "#/components/parameters/owner" },
|
|
4058
|
+
{ "$ref": "#/components/parameters/repo" },
|
|
4059
|
+
{ "$ref": "#/components/parameters/release-id" }
|
|
4060
|
+
],
|
|
4061
|
+
"requestBody": {
|
|
4062
|
+
"content": {
|
|
4063
|
+
"application/json": {
|
|
4064
|
+
"schema": {
|
|
4065
|
+
"type": "object",
|
|
4066
|
+
"properties": {
|
|
4067
|
+
"tag_name": {
|
|
4068
|
+
"type": "string",
|
|
4069
|
+
"description": "The name of the tag."
|
|
4070
|
+
},
|
|
4071
|
+
"target_commitish": {
|
|
4072
|
+
"type": "string",
|
|
4073
|
+
"description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`)."
|
|
4074
|
+
},
|
|
4075
|
+
"name": {
|
|
4076
|
+
"type": "string",
|
|
4077
|
+
"description": "The name of the release."
|
|
4078
|
+
},
|
|
4079
|
+
"body": {
|
|
4080
|
+
"type": "string",
|
|
4081
|
+
"description": "Text describing the contents of the tag."
|
|
4082
|
+
},
|
|
4083
|
+
"draft": {
|
|
4084
|
+
"type": "boolean",
|
|
4085
|
+
"description": "`true` makes the release a draft, and `false` publishes the release."
|
|
4086
|
+
},
|
|
4087
|
+
"prerelease": {
|
|
4088
|
+
"type": "boolean",
|
|
4089
|
+
"description": "`true` to identify the release as a prerelease, `false` to identify the release as a full release."
|
|
4090
|
+
}
|
|
4091
|
+
}
|
|
4092
|
+
},
|
|
4093
|
+
"example": {
|
|
4094
|
+
"tag_name": "v1.0.0",
|
|
4095
|
+
"target_commitish": "master",
|
|
4096
|
+
"name": "v1.0.0",
|
|
4097
|
+
"body": "Description of the release",
|
|
4098
|
+
"draft": false,
|
|
4099
|
+
"prerelease": false
|
|
4100
|
+
}
|
|
4101
|
+
}
|
|
4102
|
+
}
|
|
4103
|
+
},
|
|
4104
|
+
"responses": {
|
|
4105
|
+
"200": {
|
|
4106
|
+
"description": "Response",
|
|
4107
|
+
"content": {
|
|
4108
|
+
"application/json": {
|
|
4109
|
+
"schema": { "$ref": "#/components/schemas/release" },
|
|
4110
|
+
"examples": {
|
|
4111
|
+
"default": { "$ref": "#/components/examples/release" }
|
|
4112
|
+
}
|
|
4113
|
+
}
|
|
4114
|
+
}
|
|
4115
|
+
}
|
|
4116
|
+
},
|
|
4117
|
+
"x-github": {
|
|
4118
|
+
"githubCloudOnly": false,
|
|
4119
|
+
"enabledForGitHubApps": true,
|
|
4120
|
+
"previews": [],
|
|
4121
|
+
"category": "repos",
|
|
4122
|
+
"subcategory": "releases"
|
|
4123
|
+
},
|
|
4124
|
+
"x-octokit": {
|
|
4125
|
+
"diff": { "api.github.com.json": { "type": "changed" } }
|
|
4126
|
+
}
|
|
3626
4127
|
}
|
|
3627
4128
|
},
|
|
3628
4129
|
"/repositories": {
|
|
@@ -5205,65 +5706,298 @@
|
|
|
5205
5706
|
"total_wikis": { "type": "integer" }
|
|
5206
5707
|
},
|
|
5207
5708
|
"required": [
|
|
5208
|
-
"total_repos",
|
|
5209
|
-
"root_repos",
|
|
5210
|
-
"fork_repos",
|
|
5211
|
-
"org_repos",
|
|
5212
|
-
"total_pushes",
|
|
5213
|
-
"total_wikis"
|
|
5709
|
+
"total_repos",
|
|
5710
|
+
"root_repos",
|
|
5711
|
+
"fork_repos",
|
|
5712
|
+
"org_repos",
|
|
5713
|
+
"total_pushes",
|
|
5714
|
+
"total_wikis"
|
|
5715
|
+
]
|
|
5716
|
+
},
|
|
5717
|
+
"enterprise-user-overview": {
|
|
5718
|
+
"title": "Enterprise User Stats",
|
|
5719
|
+
"type": "object",
|
|
5720
|
+
"properties": {
|
|
5721
|
+
"total_users": { "type": "integer" },
|
|
5722
|
+
"admin_users": { "type": "integer" },
|
|
5723
|
+
"suspended_users": { "type": "integer" }
|
|
5724
|
+
},
|
|
5725
|
+
"required": ["total_users", "admin_users", "suspended_users"]
|
|
5726
|
+
},
|
|
5727
|
+
"selected-actions": {
|
|
5728
|
+
"type": "object",
|
|
5729
|
+
"properties": {
|
|
5730
|
+
"github_owned_allowed": {
|
|
5731
|
+
"type": "boolean",
|
|
5732
|
+
"description": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization."
|
|
5733
|
+
},
|
|
5734
|
+
"patterns_allowed": {
|
|
5735
|
+
"type": "array",
|
|
5736
|
+
"description": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\"",
|
|
5737
|
+
"items": { "type": "string" }
|
|
5738
|
+
}
|
|
5739
|
+
},
|
|
5740
|
+
"required": ["github_owned_allowed", "patterns_allowed"]
|
|
5741
|
+
},
|
|
5742
|
+
"api-overview": {
|
|
5743
|
+
"title": "Api Overview",
|
|
5744
|
+
"description": "Api Overview",
|
|
5745
|
+
"type": "object",
|
|
5746
|
+
"properties": {
|
|
5747
|
+
"verifiable_password_authentication": {
|
|
5748
|
+
"type": "boolean",
|
|
5749
|
+
"example": true
|
|
5750
|
+
},
|
|
5751
|
+
"packages": {
|
|
5752
|
+
"type": "array",
|
|
5753
|
+
"items": { "type": "string" },
|
|
5754
|
+
"example": [
|
|
5755
|
+
"13.65.0.0/16",
|
|
5756
|
+
"157.55.204.33/32",
|
|
5757
|
+
"2a01:111:f403:f90c::/62"
|
|
5758
|
+
]
|
|
5759
|
+
},
|
|
5760
|
+
"dependabot": {
|
|
5761
|
+
"type": "array",
|
|
5762
|
+
"items": { "type": "string" },
|
|
5763
|
+
"example": ["192.168.7.15/32", "192.168.7.16/32"]
|
|
5764
|
+
},
|
|
5765
|
+
"installed_version": { "type": "string", "example": "3.2.0" }
|
|
5766
|
+
},
|
|
5767
|
+
"required": ["verifiable_password_authentication"]
|
|
5768
|
+
},
|
|
5769
|
+
"organization-full": {
|
|
5770
|
+
"title": "Organization Full",
|
|
5771
|
+
"description": "Organization Full",
|
|
5772
|
+
"type": "object",
|
|
5773
|
+
"properties": {
|
|
5774
|
+
"login": { "type": "string", "example": "github" },
|
|
5775
|
+
"id": { "type": "integer", "example": 1 },
|
|
5776
|
+
"node_id": {
|
|
5777
|
+
"type": "string",
|
|
5778
|
+
"example": "MDEyOk9yZ2FuaXphdGlvbjE="
|
|
5779
|
+
},
|
|
5780
|
+
"url": {
|
|
5781
|
+
"type": "string",
|
|
5782
|
+
"format": "uri",
|
|
5783
|
+
"example": "https://api.github.com/orgs/github"
|
|
5784
|
+
},
|
|
5785
|
+
"repos_url": {
|
|
5786
|
+
"type": "string",
|
|
5787
|
+
"format": "uri",
|
|
5788
|
+
"example": "https://api.github.com/orgs/github/repos"
|
|
5789
|
+
},
|
|
5790
|
+
"events_url": {
|
|
5791
|
+
"type": "string",
|
|
5792
|
+
"format": "uri",
|
|
5793
|
+
"example": "https://api.github.com/orgs/github/events"
|
|
5794
|
+
},
|
|
5795
|
+
"hooks_url": {
|
|
5796
|
+
"type": "string",
|
|
5797
|
+
"example": "https://api.github.com/orgs/github/hooks"
|
|
5798
|
+
},
|
|
5799
|
+
"issues_url": {
|
|
5800
|
+
"type": "string",
|
|
5801
|
+
"example": "https://api.github.com/orgs/github/issues"
|
|
5802
|
+
},
|
|
5803
|
+
"members_url": {
|
|
5804
|
+
"type": "string",
|
|
5805
|
+
"example": "https://api.github.com/orgs/github/members{/member}"
|
|
5806
|
+
},
|
|
5807
|
+
"public_members_url": {
|
|
5808
|
+
"type": "string",
|
|
5809
|
+
"example": "https://api.github.com/orgs/github/public_members{/member}"
|
|
5810
|
+
},
|
|
5811
|
+
"avatar_url": {
|
|
5812
|
+
"type": "string",
|
|
5813
|
+
"example": "https://github.com/images/error/octocat_happy.gif"
|
|
5814
|
+
},
|
|
5815
|
+
"description": {
|
|
5816
|
+
"type": "string",
|
|
5817
|
+
"example": "A great organization",
|
|
5818
|
+
"nullable": true
|
|
5819
|
+
},
|
|
5820
|
+
"name": { "type": "string", "example": "github" },
|
|
5821
|
+
"company": { "type": "string", "example": "GitHub" },
|
|
5822
|
+
"blog": {
|
|
5823
|
+
"type": "string",
|
|
5824
|
+
"format": "uri",
|
|
5825
|
+
"example": "https://github.com/blog"
|
|
5826
|
+
},
|
|
5827
|
+
"location": { "type": "string", "example": "San Francisco" },
|
|
5828
|
+
"email": {
|
|
5829
|
+
"type": "string",
|
|
5830
|
+
"format": "email",
|
|
5831
|
+
"example": "octocat@github.com"
|
|
5832
|
+
},
|
|
5833
|
+
"twitter_username": {
|
|
5834
|
+
"type": "string",
|
|
5835
|
+
"example": "github",
|
|
5836
|
+
"nullable": true
|
|
5837
|
+
},
|
|
5838
|
+
"is_verified": { "type": "boolean", "example": true },
|
|
5839
|
+
"has_organization_projects": { "type": "boolean", "example": true },
|
|
5840
|
+
"has_repository_projects": { "type": "boolean", "example": true },
|
|
5841
|
+
"public_repos": { "type": "integer", "example": 2 },
|
|
5842
|
+
"public_gists": { "type": "integer", "example": 1 },
|
|
5843
|
+
"followers": { "type": "integer", "example": 20 },
|
|
5844
|
+
"following": { "type": "integer", "example": 0 },
|
|
5845
|
+
"html_url": {
|
|
5846
|
+
"type": "string",
|
|
5847
|
+
"format": "uri",
|
|
5848
|
+
"example": "https://github.com/octocat"
|
|
5849
|
+
},
|
|
5850
|
+
"created_at": {
|
|
5851
|
+
"type": "string",
|
|
5852
|
+
"format": "date-time",
|
|
5853
|
+
"example": "2008-01-14T04:33:35Z"
|
|
5854
|
+
},
|
|
5855
|
+
"type": { "type": "string", "example": "Organization" },
|
|
5856
|
+
"total_private_repos": { "type": "integer", "example": 100 },
|
|
5857
|
+
"owned_private_repos": { "type": "integer", "example": 100 },
|
|
5858
|
+
"private_gists": {
|
|
5859
|
+
"type": "integer",
|
|
5860
|
+
"example": 81,
|
|
5861
|
+
"nullable": true
|
|
5862
|
+
},
|
|
5863
|
+
"disk_usage": {
|
|
5864
|
+
"type": "integer",
|
|
5865
|
+
"example": 10000,
|
|
5866
|
+
"nullable": true
|
|
5867
|
+
},
|
|
5868
|
+
"collaborators": {
|
|
5869
|
+
"type": "integer",
|
|
5870
|
+
"example": 8,
|
|
5871
|
+
"nullable": true
|
|
5872
|
+
},
|
|
5873
|
+
"billing_email": {
|
|
5874
|
+
"type": "string",
|
|
5875
|
+
"format": "email",
|
|
5876
|
+
"example": "org@example.com",
|
|
5877
|
+
"nullable": true
|
|
5878
|
+
},
|
|
5879
|
+
"plan": {
|
|
5880
|
+
"type": "object",
|
|
5881
|
+
"properties": {
|
|
5882
|
+
"name": { "type": "string" },
|
|
5883
|
+
"space": { "type": "integer" },
|
|
5884
|
+
"private_repos": { "type": "integer" },
|
|
5885
|
+
"filled_seats": { "type": "integer" },
|
|
5886
|
+
"seats": { "type": "integer" }
|
|
5887
|
+
},
|
|
5888
|
+
"required": ["name", "space", "private_repos"]
|
|
5889
|
+
},
|
|
5890
|
+
"default_repository_permission": {
|
|
5891
|
+
"type": "string",
|
|
5892
|
+
"nullable": true
|
|
5893
|
+
},
|
|
5894
|
+
"members_can_create_repositories": {
|
|
5895
|
+
"type": "boolean",
|
|
5896
|
+
"example": true,
|
|
5897
|
+
"nullable": true
|
|
5898
|
+
},
|
|
5899
|
+
"two_factor_requirement_enabled": {
|
|
5900
|
+
"type": "boolean",
|
|
5901
|
+
"example": true,
|
|
5902
|
+
"nullable": true
|
|
5903
|
+
},
|
|
5904
|
+
"members_allowed_repository_creation_type": {
|
|
5905
|
+
"type": "string",
|
|
5906
|
+
"example": "all"
|
|
5907
|
+
},
|
|
5908
|
+
"members_can_create_public_repositories": {
|
|
5909
|
+
"type": "boolean",
|
|
5910
|
+
"example": true
|
|
5911
|
+
},
|
|
5912
|
+
"members_can_create_private_repositories": {
|
|
5913
|
+
"type": "boolean",
|
|
5914
|
+
"example": true
|
|
5915
|
+
},
|
|
5916
|
+
"members_can_create_internal_repositories": {
|
|
5917
|
+
"type": "boolean",
|
|
5918
|
+
"example": true
|
|
5919
|
+
},
|
|
5920
|
+
"members_can_create_pages": { "type": "boolean", "example": true },
|
|
5921
|
+
"members_can_create_public_pages": {
|
|
5922
|
+
"type": "boolean",
|
|
5923
|
+
"example": true
|
|
5924
|
+
},
|
|
5925
|
+
"members_can_create_private_pages": {
|
|
5926
|
+
"type": "boolean",
|
|
5927
|
+
"example": true
|
|
5928
|
+
},
|
|
5929
|
+
"updated_at": { "type": "string", "format": "date-time" }
|
|
5930
|
+
},
|
|
5931
|
+
"required": [
|
|
5932
|
+
"login",
|
|
5933
|
+
"url",
|
|
5934
|
+
"id",
|
|
5935
|
+
"node_id",
|
|
5936
|
+
"repos_url",
|
|
5937
|
+
"events_url",
|
|
5938
|
+
"hooks_url",
|
|
5939
|
+
"issues_url",
|
|
5940
|
+
"members_url",
|
|
5941
|
+
"public_members_url",
|
|
5942
|
+
"avatar_url",
|
|
5943
|
+
"description",
|
|
5944
|
+
"html_url",
|
|
5945
|
+
"has_organization_projects",
|
|
5946
|
+
"has_repository_projects",
|
|
5947
|
+
"public_repos",
|
|
5948
|
+
"public_gists",
|
|
5949
|
+
"followers",
|
|
5950
|
+
"following",
|
|
5951
|
+
"type",
|
|
5952
|
+
"created_at",
|
|
5953
|
+
"updated_at"
|
|
5214
5954
|
]
|
|
5215
5955
|
},
|
|
5216
|
-
"
|
|
5217
|
-
"title": "
|
|
5218
|
-
"
|
|
5219
|
-
"properties": {
|
|
5220
|
-
"total_users": { "type": "integer" },
|
|
5221
|
-
"admin_users": { "type": "integer" },
|
|
5222
|
-
"suspended_users": { "type": "integer" }
|
|
5223
|
-
},
|
|
5224
|
-
"required": ["total_users", "admin_users", "suspended_users"]
|
|
5225
|
-
},
|
|
5226
|
-
"selected-actions": {
|
|
5956
|
+
"validation-error": {
|
|
5957
|
+
"title": "Validation Error",
|
|
5958
|
+
"description": "Validation Error",
|
|
5227
5959
|
"type": "object",
|
|
5960
|
+
"required": ["message", "documentation_url"],
|
|
5228
5961
|
"properties": {
|
|
5229
|
-
"
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
},
|
|
5233
|
-
"patterns_allowed": {
|
|
5962
|
+
"message": { "type": "string" },
|
|
5963
|
+
"documentation_url": { "type": "string" },
|
|
5964
|
+
"errors": {
|
|
5234
5965
|
"type": "array",
|
|
5235
|
-
"
|
|
5236
|
-
|
|
5966
|
+
"items": {
|
|
5967
|
+
"type": "object",
|
|
5968
|
+
"required": ["code"],
|
|
5969
|
+
"properties": {
|
|
5970
|
+
"resource": { "type": "string" },
|
|
5971
|
+
"field": { "type": "string" },
|
|
5972
|
+
"message": { "type": "string" },
|
|
5973
|
+
"code": { "type": "string" },
|
|
5974
|
+
"index": { "type": "integer" },
|
|
5975
|
+
"value": {
|
|
5976
|
+
"oneOf": [
|
|
5977
|
+
{ "type": "string", "nullable": true },
|
|
5978
|
+
{ "type": "integer", "nullable": true },
|
|
5979
|
+
{
|
|
5980
|
+
"type": "array",
|
|
5981
|
+
"nullable": true,
|
|
5982
|
+
"items": { "type": "string" }
|
|
5983
|
+
}
|
|
5984
|
+
]
|
|
5985
|
+
}
|
|
5986
|
+
}
|
|
5987
|
+
}
|
|
5237
5988
|
}
|
|
5238
|
-
}
|
|
5239
|
-
"required": ["github_owned_allowed", "patterns_allowed"]
|
|
5989
|
+
}
|
|
5240
5990
|
},
|
|
5241
|
-
"
|
|
5242
|
-
"title": "
|
|
5243
|
-
"description": "
|
|
5991
|
+
"validation-error-simple": {
|
|
5992
|
+
"title": "Validation Error Simple",
|
|
5993
|
+
"description": "Validation Error Simple",
|
|
5244
5994
|
"type": "object",
|
|
5995
|
+
"required": ["message", "documentation_url"],
|
|
5245
5996
|
"properties": {
|
|
5246
|
-
"
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
"packages": {
|
|
5251
|
-
"type": "array",
|
|
5252
|
-
"items": { "type": "string" },
|
|
5253
|
-
"example": [
|
|
5254
|
-
"13.65.0.0/16",
|
|
5255
|
-
"157.55.204.33/32",
|
|
5256
|
-
"2a01:111:f403:f90c::/62"
|
|
5257
|
-
]
|
|
5258
|
-
},
|
|
5259
|
-
"dependabot": {
|
|
5260
|
-
"type": "array",
|
|
5261
|
-
"items": { "type": "string" },
|
|
5262
|
-
"example": ["192.168.7.15/32", "192.168.7.16/32"]
|
|
5263
|
-
},
|
|
5264
|
-
"installed_version": { "type": "string", "example": "3.2.0" }
|
|
5265
|
-
},
|
|
5266
|
-
"required": ["verifiable_password_authentication"]
|
|
5997
|
+
"message": { "type": "string" },
|
|
5998
|
+
"documentation_url": { "type": "string" },
|
|
5999
|
+
"errors": { "type": "array", "items": { "type": "string" } }
|
|
6000
|
+
}
|
|
5267
6001
|
},
|
|
5268
6002
|
"org-pre-receive-hook": {
|
|
5269
6003
|
"type": "object",
|
|
@@ -5451,6 +6185,17 @@
|
|
|
5451
6185
|
"most_recent_instance"
|
|
5452
6186
|
]
|
|
5453
6187
|
},
|
|
6188
|
+
"code-scanning-alert-set-state": {
|
|
6189
|
+
"description": "Sets the state of the code scanning alert. Can be one of `open` or `dismissed`. You must provide `dismissed_reason` when you set the state to `dismissed`.",
|
|
6190
|
+
"type": "string",
|
|
6191
|
+
"enum": ["open", "dismissed"]
|
|
6192
|
+
},
|
|
6193
|
+
"code-scanning-alert-dismissed-reason": {
|
|
6194
|
+
"type": "string",
|
|
6195
|
+
"description": "**Required when the state is dismissed.** The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`.",
|
|
6196
|
+
"nullable": true,
|
|
6197
|
+
"enum": [null, "false positive", "won't fix", "used in tests"]
|
|
6198
|
+
},
|
|
5454
6199
|
"code-scanning-ref": {
|
|
5455
6200
|
"type": "string",
|
|
5456
6201
|
"description": "The full Git reference, formatted as `refs/heads/<branch name>`,\n`refs/pull/<number>/merge`, or `refs/pull/<number>/head`."
|
|
@@ -6531,12 +7276,6 @@
|
|
|
6531
7276
|
"readOnly": true,
|
|
6532
7277
|
"nullable": true
|
|
6533
7278
|
},
|
|
6534
|
-
"code-scanning-alert-dismissed-reason": {
|
|
6535
|
-
"type": "string",
|
|
6536
|
-
"description": "**Required when the state is dismissed.** The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`.",
|
|
6537
|
-
"nullable": true,
|
|
6538
|
-
"enum": [null, "false positive", "won't fix", "used in tests"]
|
|
6539
|
-
},
|
|
6540
7279
|
"code-scanning-alert-rule": {
|
|
6541
7280
|
"type": "object",
|
|
6542
7281
|
"properties": {
|
|
@@ -7365,41 +8104,6 @@
|
|
|
7365
8104
|
"html_url": { "type": "string", "format": "uri", "nullable": true }
|
|
7366
8105
|
},
|
|
7367
8106
|
"required": ["url", "html_url", "key", "name"]
|
|
7368
|
-
},
|
|
7369
|
-
"validation-error": {
|
|
7370
|
-
"title": "Validation Error",
|
|
7371
|
-
"description": "Validation Error",
|
|
7372
|
-
"type": "object",
|
|
7373
|
-
"required": ["message", "documentation_url"],
|
|
7374
|
-
"properties": {
|
|
7375
|
-
"message": { "type": "string" },
|
|
7376
|
-
"documentation_url": { "type": "string" },
|
|
7377
|
-
"errors": {
|
|
7378
|
-
"type": "array",
|
|
7379
|
-
"items": {
|
|
7380
|
-
"type": "object",
|
|
7381
|
-
"required": ["code"],
|
|
7382
|
-
"properties": {
|
|
7383
|
-
"resource": { "type": "string" },
|
|
7384
|
-
"field": { "type": "string" },
|
|
7385
|
-
"message": { "type": "string" },
|
|
7386
|
-
"code": { "type": "string" },
|
|
7387
|
-
"index": { "type": "integer" },
|
|
7388
|
-
"value": {
|
|
7389
|
-
"oneOf": [
|
|
7390
|
-
{ "type": "string", "nullable": true },
|
|
7391
|
-
{ "type": "integer", "nullable": true },
|
|
7392
|
-
{
|
|
7393
|
-
"type": "array",
|
|
7394
|
-
"nullable": true,
|
|
7395
|
-
"items": { "type": "string" }
|
|
7396
|
-
}
|
|
7397
|
-
]
|
|
7398
|
-
}
|
|
7399
|
-
}
|
|
7400
|
-
}
|
|
7401
|
-
}
|
|
7402
|
-
}
|
|
7403
8107
|
}
|
|
7404
8108
|
},
|
|
7405
8109
|
"examples": {
|
|
@@ -7962,6 +8666,56 @@
|
|
|
7962
8666
|
"installed_version": "3.2.0"
|
|
7963
8667
|
}
|
|
7964
8668
|
},
|
|
8669
|
+
"organization-full": {
|
|
8670
|
+
"value": {
|
|
8671
|
+
"login": "github",
|
|
8672
|
+
"id": 1,
|
|
8673
|
+
"node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
|
|
8674
|
+
"url": "https://api.github.com/orgs/github",
|
|
8675
|
+
"repos_url": "https://api.github.com/orgs/github/repos",
|
|
8676
|
+
"events_url": "https://api.github.com/orgs/github/events",
|
|
8677
|
+
"hooks_url": "https://api.github.com/orgs/github/hooks",
|
|
8678
|
+
"issues_url": "https://api.github.com/orgs/github/issues",
|
|
8679
|
+
"members_url": "https://api.github.com/orgs/github/members{/member}",
|
|
8680
|
+
"public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
|
|
8681
|
+
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
|
8682
|
+
"description": "A great organization",
|
|
8683
|
+
"name": "github",
|
|
8684
|
+
"company": "GitHub",
|
|
8685
|
+
"blog": "https://github.com/blog",
|
|
8686
|
+
"location": "San Francisco",
|
|
8687
|
+
"email": "octocat@github.com",
|
|
8688
|
+
"twitter_username": "github",
|
|
8689
|
+
"is_verified": true,
|
|
8690
|
+
"has_organization_projects": true,
|
|
8691
|
+
"has_repository_projects": true,
|
|
8692
|
+
"public_repos": 2,
|
|
8693
|
+
"public_gists": 1,
|
|
8694
|
+
"followers": 20,
|
|
8695
|
+
"following": 0,
|
|
8696
|
+
"html_url": "https://github.com/octocat",
|
|
8697
|
+
"created_at": "2008-01-14T04:33:35Z",
|
|
8698
|
+
"type": "Organization",
|
|
8699
|
+
"total_private_repos": 100,
|
|
8700
|
+
"owned_private_repos": 100,
|
|
8701
|
+
"private_gists": 81,
|
|
8702
|
+
"disk_usage": 10000,
|
|
8703
|
+
"collaborators": 8,
|
|
8704
|
+
"billing_email": "mona@github.com",
|
|
8705
|
+
"plan": { "name": "Medium", "space": 400, "private_repos": 20 },
|
|
8706
|
+
"default_repository_permission": "read",
|
|
8707
|
+
"members_can_create_repositories": true,
|
|
8708
|
+
"two_factor_requirement_enabled": true,
|
|
8709
|
+
"members_allowed_repository_creation_type": "all",
|
|
8710
|
+
"members_can_create_public_repositories": false,
|
|
8711
|
+
"members_can_create_private_repositories": false,
|
|
8712
|
+
"members_can_create_internal_repositories": false,
|
|
8713
|
+
"members_can_create_pages": true,
|
|
8714
|
+
"members_can_create_public_pages": true,
|
|
8715
|
+
"members_can_create_private_pages": true,
|
|
8716
|
+
"updated_at": "2014-03-03T18:58:10Z"
|
|
8717
|
+
}
|
|
8718
|
+
},
|
|
7965
8719
|
"org-pre-receive-hook-items": {
|
|
7966
8720
|
"value": [
|
|
7967
8721
|
{
|
|
@@ -8255,6 +9009,67 @@
|
|
|
8255
9009
|
"instances_url": "https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42/instances"
|
|
8256
9010
|
}
|
|
8257
9011
|
},
|
|
9012
|
+
"code-scanning-alert-dismissed": {
|
|
9013
|
+
"value": {
|
|
9014
|
+
"number": 42,
|
|
9015
|
+
"created_at": "2020-08-25T21:28:36Z",
|
|
9016
|
+
"url": "https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42",
|
|
9017
|
+
"html_url": "https://github.com/octocat/hello-world/code-scanning/42",
|
|
9018
|
+
"state": "dismissed",
|
|
9019
|
+
"dismissed_by": {
|
|
9020
|
+
"login": "octocat",
|
|
9021
|
+
"id": 1,
|
|
9022
|
+
"node_id": "MDQ6VXNlcjE=",
|
|
9023
|
+
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
|
9024
|
+
"gravatar_id": "",
|
|
9025
|
+
"url": "https://api.github.com/users/octocat",
|
|
9026
|
+
"html_url": "https://github.com/octocat",
|
|
9027
|
+
"followers_url": "https://api.github.com/users/octocat/followers",
|
|
9028
|
+
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
|
|
9029
|
+
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
|
|
9030
|
+
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
|
|
9031
|
+
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
|
|
9032
|
+
"organizations_url": "https://api.github.com/users/octocat/orgs",
|
|
9033
|
+
"repos_url": "https://api.github.com/users/octocat/repos",
|
|
9034
|
+
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
|
|
9035
|
+
"received_events_url": "https://api.github.com/users/octocat/received_events",
|
|
9036
|
+
"type": "User",
|
|
9037
|
+
"site_admin": false
|
|
9038
|
+
},
|
|
9039
|
+
"dismissed_at": "2020-09-02T22:34:56Z",
|
|
9040
|
+
"dismissed_reason": "false positive",
|
|
9041
|
+
"rule": {
|
|
9042
|
+
"id": "js/zipslip",
|
|
9043
|
+
"severity": "error",
|
|
9044
|
+
"security_severity_level": "high",
|
|
9045
|
+
"description": "Arbitrary file write during zip extraction (\"Zip Slip\")",
|
|
9046
|
+
"name": "js/zipslip",
|
|
9047
|
+
"full_description": "Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.",
|
|
9048
|
+
"tags": ["security", "external/cwe/cwe-022"],
|
|
9049
|
+
"help": "# Arbitrary file write during zip extraction (\"Zip Slip\")\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ..."
|
|
9050
|
+
},
|
|
9051
|
+
"tool": { "name": "CodeQL", "guid": null, "version": "2.4.0" },
|
|
9052
|
+
"most_recent_instance": {
|
|
9053
|
+
"ref": "refs/heads/main",
|
|
9054
|
+
"analysis_key": ".github/workflows/codeql-analysis.yml:CodeQL-Build",
|
|
9055
|
+
"environment": "{}",
|
|
9056
|
+
"state": "dismissed",
|
|
9057
|
+
"commit_sha": "39406e42cb832f683daa691dd652a8dc36ee8930",
|
|
9058
|
+
"message": {
|
|
9059
|
+
"text": "This path depends on a user-provided value."
|
|
9060
|
+
},
|
|
9061
|
+
"location": {
|
|
9062
|
+
"path": "spec-main/api-session-spec.ts",
|
|
9063
|
+
"start_line": 917,
|
|
9064
|
+
"end_line": 917,
|
|
9065
|
+
"start_column": 7,
|
|
9066
|
+
"end_column": 18
|
|
9067
|
+
},
|
|
9068
|
+
"classifications": ["test"]
|
|
9069
|
+
},
|
|
9070
|
+
"instances_url": "https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42/instances"
|
|
9071
|
+
}
|
|
9072
|
+
},
|
|
8258
9073
|
"code-scanning-analysis-items": {
|
|
8259
9074
|
"value": [
|
|
8260
9075
|
{
|
|
@@ -8750,6 +9565,14 @@
|
|
|
8750
9565
|
}
|
|
8751
9566
|
},
|
|
8752
9567
|
"not_modified": { "description": "Not modified" },
|
|
9568
|
+
"conflict": {
|
|
9569
|
+
"description": "Conflict",
|
|
9570
|
+
"content": {
|
|
9571
|
+
"application/json": {
|
|
9572
|
+
"schema": { "$ref": "#/components/schemas/basic-error" }
|
|
9573
|
+
}
|
|
9574
|
+
}
|
|
9575
|
+
},
|
|
8753
9576
|
"code_scanning_forbidden_read": {
|
|
8754
9577
|
"description": "Response if GitHub Advanced Security is not enabled for this repository",
|
|
8755
9578
|
"content": {
|
|
@@ -8773,6 +9596,14 @@
|
|
|
8773
9596
|
}
|
|
8774
9597
|
}
|
|
8775
9598
|
},
|
|
9599
|
+
"code_scanning_forbidden_write": {
|
|
9600
|
+
"description": "Response if the repository is archived or if github advanced security is not enabled for this repository",
|
|
9601
|
+
"content": {
|
|
9602
|
+
"application/json": {
|
|
9603
|
+
"schema": { "$ref": "#/components/schemas/basic-error" }
|
|
9604
|
+
}
|
|
9605
|
+
}
|
|
9606
|
+
},
|
|
8776
9607
|
"validation_failed": {
|
|
8777
9608
|
"description": "Validation failed",
|
|
8778
9609
|
"content": {
|