Skip to content

Commit 7595529

Browse files
authored
Merge pull request #5237 from github/openapi-update-99b4107f2346621a355515f82c20496366e3b665e88f2cf50b90be0c5529bbcc
Update OpenAPI 3.0 Descriptions
2 parents 457b945 + 7131f14 commit 7595529

16 files changed

+19872
-19552
lines changed

descriptions/api.github.com/api.github.com.2022-11-28.json

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7854,6 +7854,9 @@
78547854
},
78557855
"allowed_actions": {
78567856
"$ref": "#/components/schemas/allowed-actions"
7857+
},
7858+
"sha_pinning_required": {
7859+
"$ref": "#/components/schemas/sha-pinning-required"
78577860
}
78587861
},
78597862
"required": [
@@ -7864,7 +7867,8 @@
78647867
"default": {
78657868
"value": {
78667869
"enabled_repositories": "all",
7867-
"allowed_actions": "selected"
7870+
"allowed_actions": "selected",
7871+
"sha_pinning_required": true
78687872
}
78697873
}
78707874
}
@@ -29677,6 +29681,9 @@
2967729681
},
2967829682
"allowed_actions": {
2967929683
"$ref": "#/components/schemas/allowed-actions"
29684+
},
29685+
"sha_pinning_required": {
29686+
"$ref": "#/components/schemas/sha-pinning-required"
2968029687
}
2968129688
},
2968229689
"required": [
@@ -29687,7 +29694,8 @@
2968729694
"default": {
2968829695
"value": {
2968929696
"enabled": true,
29690-
"allowed_actions": "selected"
29697+
"allowed_actions": "selected",
29698+
"sha_pinning_required": true
2969129699
}
2969229700
}
2969329701
}
@@ -106863,6 +106871,10 @@
106863106871
"type": "string",
106864106872
"description": "The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`."
106865106873
},
106874+
"sha-pinning-required": {
106875+
"type": "boolean",
106876+
"description": "Whether actions must be pinned to a full-length commit SHA."
106877+
},
106866106878
"actions-organization-permissions": {
106867106879
"type": "object",
106868106880
"properties": {
@@ -106878,6 +106890,9 @@
106878106890
},
106879106891
"selected_actions_url": {
106880106892
"$ref": "#/components/schemas/selected-actions-url"
106893+
},
106894+
"sha_pinning_required": {
106895+
"$ref": "#/components/schemas/sha-pinning-required"
106881106896
}
106882106897
},
106883106898
"required": [
@@ -116762,6 +116777,9 @@
116762116777
},
116763116778
"selected_actions_url": {
116764116779
"$ref": "#/components/schemas/selected-actions-url"
116780+
},
116781+
"sha_pinning_required": {
116782+
"$ref": "#/components/schemas/sha-pinning-required"
116765116783
}
116766116784
},
116767116785
"required": [
@@ -277677,7 +277695,8 @@
277677277695
"value": {
277678277696
"enabled_repositories": "all",
277679277697
"allowed_actions": "selected",
277680-
"selected_actions_url": "https://api.github.com/organizations/42/actions/permissions/selected-actions"
277698+
"selected_actions_url": "https://api.github.com/organizations/42/actions/permissions/selected-actions",
277699+
"sha_pinning_required": true
277681277700
}
277682277701
},
277683277702
"actions-fork-pr-contributor-approval": {
@@ -284918,7 +284937,8 @@
284918284937
"value": {
284919284938
"enabled": true,
284920284939
"allowed_actions": "selected",
284921-
"selected_actions_url": "https://api.github.com/repositories/42/actions/permissions/selected-actions"
284940+
"selected_actions_url": "https://api.github.com/repositories/42/actions/permissions/selected-actions",
284941+
"sha_pinning_required": true
284922284942
}
284923284943
},
284924284944
"actions-workflow-access-to-repository": {

descriptions/api.github.com/api.github.com.2022-11-28.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5671,13 +5671,16 @@ paths:
56715671
"$ref": "#/components/schemas/enabled-repositories"
56725672
allowed_actions:
56735673
"$ref": "#/components/schemas/allowed-actions"
5674+
sha_pinning_required:
5675+
"$ref": "#/components/schemas/sha-pinning-required"
56745676
required:
56755677
- enabled_repositories
56765678
examples:
56775679
default:
56785680
value:
56795681
enabled_repositories: all
56805682
allowed_actions: selected
5683+
sha_pinning_required: true
56815684
x-github:
56825685
enabledForGitHubApps: true
56835686
githubCloudOnly: false
@@ -21598,13 +21601,16 @@ paths:
2159821601
"$ref": "#/components/schemas/actions-enabled"
2159921602
allowed_actions:
2160021603
"$ref": "#/components/schemas/allowed-actions"
21604+
sha_pinning_required:
21605+
"$ref": "#/components/schemas/sha-pinning-required"
2160121606
required:
2160221607
- enabled
2160321608
examples:
2160421609
default:
2160521610
value:
2160621611
enabled: true
2160721612
allowed_actions: selected
21613+
sha_pinning_required: true
2160821614
x-github:
2160921615
enabledForGitHubApps: true
2161021616
githubCloudOnly: false
@@ -78015,6 +78021,9 @@ components:
7801578021
type: string
7801678022
description: The API URL to use to get or set the actions and reusable workflows
7801778023
that are allowed to run, when `allowed_actions` is set to `selected`.
78024+
sha-pinning-required:
78025+
type: boolean
78026+
description: Whether actions must be pinned to a full-length commit SHA.
7801878027
actions-organization-permissions:
7801978028
type: object
7802078029
properties:
@@ -78029,6 +78038,8 @@ components:
7802978038
"$ref": "#/components/schemas/allowed-actions"
7803078039
selected_actions_url:
7803178040
"$ref": "#/components/schemas/selected-actions-url"
78041+
sha_pinning_required:
78042+
"$ref": "#/components/schemas/sha-pinning-required"
7803278043
required:
7803378044
- enabled_repositories
7803478045
actions-artifact-and-log-retention-response:
@@ -85893,6 +85904,8 @@ components:
8589385904
"$ref": "#/components/schemas/allowed-actions"
8589485905
selected_actions_url:
8589585906
"$ref": "#/components/schemas/selected-actions-url"
85907+
sha_pinning_required:
85908+
"$ref": "#/components/schemas/sha-pinning-required"
8589685909
required:
8589785910
- enabled
8589885911
actions-workflow-access-to-repository:
@@ -208250,6 +208263,7 @@ components:
208250208263
enabled_repositories: all
208251208264
allowed_actions: selected
208252208265
selected_actions_url: https://api.github.com/organizations/42/actions/permissions/selected-actions
208266+
sha_pinning_required: true
208253208267
actions-fork-pr-contributor-approval:
208254208268
value:
208255208269
approval_policy: first_time_contributors
@@ -214409,6 +214423,7 @@ components:
214409214423
enabled: true
214410214424
allowed_actions: selected
214411214425
selected_actions_url: https://api.github.com/repositories/42/actions/permissions/selected-actions
214426+
sha_pinning_required: true
214412214427
actions-workflow-access-to-repository:
214413214428
value:
214414214429
access_level: organization

descriptions/api.github.com/api.github.com.json

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7854,6 +7854,9 @@
78547854
},
78557855
"allowed_actions": {
78567856
"$ref": "#/components/schemas/allowed-actions"
7857+
},
7858+
"sha_pinning_required": {
7859+
"$ref": "#/components/schemas/sha-pinning-required"
78577860
}
78587861
},
78597862
"required": [
@@ -7864,7 +7867,8 @@
78647867
"default": {
78657868
"value": {
78667869
"enabled_repositories": "all",
7867-
"allowed_actions": "selected"
7870+
"allowed_actions": "selected",
7871+
"sha_pinning_required": true
78687872
}
78697873
}
78707874
}
@@ -29677,6 +29681,9 @@
2967729681
},
2967829682
"allowed_actions": {
2967929683
"$ref": "#/components/schemas/allowed-actions"
29684+
},
29685+
"sha_pinning_required": {
29686+
"$ref": "#/components/schemas/sha-pinning-required"
2968029687
}
2968129688
},
2968229689
"required": [
@@ -29687,7 +29694,8 @@
2968729694
"default": {
2968829695
"value": {
2968929696
"enabled": true,
29690-
"allowed_actions": "selected"
29697+
"allowed_actions": "selected",
29698+
"sha_pinning_required": true
2969129699
}
2969229700
}
2969329701
}
@@ -106863,6 +106871,10 @@
106863106871
"type": "string",
106864106872
"description": "The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`."
106865106873
},
106874+
"sha-pinning-required": {
106875+
"type": "boolean",
106876+
"description": "Whether actions must be pinned to a full-length commit SHA."
106877+
},
106866106878
"actions-organization-permissions": {
106867106879
"type": "object",
106868106880
"properties": {
@@ -106878,6 +106890,9 @@
106878106890
},
106879106891
"selected_actions_url": {
106880106892
"$ref": "#/components/schemas/selected-actions-url"
106893+
},
106894+
"sha_pinning_required": {
106895+
"$ref": "#/components/schemas/sha-pinning-required"
106881106896
}
106882106897
},
106883106898
"required": [
@@ -116762,6 +116777,9 @@
116762116777
},
116763116778
"selected_actions_url": {
116764116779
"$ref": "#/components/schemas/selected-actions-url"
116780+
},
116781+
"sha_pinning_required": {
116782+
"$ref": "#/components/schemas/sha-pinning-required"
116765116783
}
116766116784
},
116767116785
"required": [
@@ -277677,7 +277695,8 @@
277677277695
"value": {
277678277696
"enabled_repositories": "all",
277679277697
"allowed_actions": "selected",
277680-
"selected_actions_url": "https://api.github.com/organizations/42/actions/permissions/selected-actions"
277698+
"selected_actions_url": "https://api.github.com/organizations/42/actions/permissions/selected-actions",
277699+
"sha_pinning_required": true
277681277700
}
277682277701
},
277683277702
"actions-fork-pr-contributor-approval": {
@@ -284918,7 +284937,8 @@
284918284937
"value": {
284919284938
"enabled": true,
284920284939
"allowed_actions": "selected",
284921-
"selected_actions_url": "https://api.github.com/repositories/42/actions/permissions/selected-actions"
284940+
"selected_actions_url": "https://api.github.com/repositories/42/actions/permissions/selected-actions",
284941+
"sha_pinning_required": true
284922284942
}
284923284943
},
284924284944
"actions-workflow-access-to-repository": {

0 commit comments

Comments
 (0)