Skip to content

Commit de18726

Browse files
authored
Merge pull request #1292 from php-api-clients/GitHubEnterpriseCloud/from-1.1.4-95df4267202b432fe4f72cf542eb28c8-from-1.1.4-95df4267202b432fe4f72cf542eb28c8
2 parents 0d249c1 + 4ce3f68 commit de18726

File tree

7 files changed

+89
-23
lines changed

7 files changed

+89
-23
lines changed

clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "d447e3d393f86b8bab369d6928d9de52",
2+
"specHash": "95df4267202b432fe4f72cf542eb28c8",
33
"generatedFiles": {
44
"files": [
55
{
@@ -456,7 +456,7 @@
456456
},
457457
{
458458
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ApiOverview.php",
459-
"hash": "5d297743d7e6782e30ffb35d8d3ed603"
459+
"hash": "43502739bba053f2d341869e9194d097"
460460
},
461461
{
462462
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SecurityAndAnalysis.php",
@@ -27128,7 +27128,7 @@
2712827128
},
2712927129
{
2713027130
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Meta.php",
27131-
"hash": "9aa3f630d5cde4763ddb43d6e5531fb4"
27131+
"hash": "6ec80e627a4899f39a12108aa03d83f7"
2713227132
},
2713327133
{
2713427134
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Networks\/Owner\/Repo\/Events.php",
@@ -29544,15 +29544,15 @@
2954429544
},
2954529545
{
2954629546
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RuleSuites.php",
29547-
"hash": "d8ad8c7092514c13051ed6db1d102c04"
29547+
"hash": "b2bdac08877d79f008bae29d0b0ca95c"
2954829548
},
2954929549
{
2955029550
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RuleSuite.php",
29551-
"hash": "b8861991862d8a0ac436432e08cd7410"
29551+
"hash": "558d0bc8106ca50c91ee349ff36e1f65"
2955229552
},
2955329553
{
2955429554
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RuleSuite\/RuleEvaluations.php",
29555-
"hash": "b8f11e925ff57747f921705a8ced1cbb"
29555+
"hash": "46d340746559f7bfcc6ebf21eb277214"
2955629556
},
2955729557
{
2955829558
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RuleSuite\/RuleEvaluations\/RuleSource.php",

clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Meta.php

+26
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
208208

209209
after_actionsMacos:
210210

211+
$value = $payload['codespaces'] ?? null;
212+
213+
if ($value === null) {
214+
$properties['codespaces'] = null;
215+
goto after_codespaces;
216+
}
217+
218+
$properties['codespaces'] = $value;
219+
220+
after_codespaces:
221+
211222
$value = $payload['dependabot'] ?? null;
212223

213224
if ($value === null) {
@@ -741,6 +752,21 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
741752
$actionsMacos = $actionsMacosSerializer0->serialize($actionsMacos, $this);
742753
after_actionsMacos: $result['actions_macos'] = $actionsMacos;
743754

755+
$codespaces = $object->codespaces;
756+
757+
if ($codespaces === null) {
758+
goto after_codespaces;
759+
}
760+
761+
static $codespacesSerializer0;
762+
763+
if ($codespacesSerializer0 === null) {
764+
$codespacesSerializer0 = new SerializeArrayItems(...[]);
765+
}
766+
767+
$codespaces = $codespacesSerializer0->serialize($codespaces, $this);
768+
after_codespaces: $result['codespaces'] = $codespaces;
769+
744770
$dependabot = $object->dependabot;
745771

746772
if ($dependabot === null) {

clients/GitHubEnterpriseCloud/src/Schema/ApiOverview.php

+14-1
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,15 @@
138138
"192.0.2.1"
139139
]
140140
},
141+
"codespaces": {
142+
"type": "array",
143+
"items": {
144+
"type": "string"
145+
},
146+
"examples": [
147+
"192.0.2.1"
148+
]
149+
},
141150
"dependabot": {
142151
"type": "array",
143152
"items": {
@@ -283,6 +292,10 @@
283292
"192.0.2.1",
284293
"192.0.2.1"
285294
],
295+
"codespaces": [
296+
"192.0.2.1",
297+
"192.0.2.1"
298+
],
286299
"dependabot": [
287300
"192.0.2.1",
288301
"192.0.2.1"
@@ -327,7 +340,7 @@ public function __construct(#[MapFrom('verifiable_password_authentication')]
327340
public Schema\ApiOverview\SshKeyFingerprints|null $sshKeyFingerprints, #[MapFrom('ssh_keys')]
328341
public array|null $sshKeys, public array|null $hooks, #[MapFrom('github_enterprise_importer')]
329342
public array|null $githubEnterpriseImporter, public array|null $web, public array|null $api, public array|null $git, public array|null $packages, public array|null $pages, public array|null $importer, public array|null $actions, #[MapFrom('actions_macos')]
330-
public array|null $actionsMacos, public array|null $dependabot, public array|null $copilot, public Schema\ApiOverview\Domains|null $domains,)
343+
public array|null $actionsMacos, public array|null $codespaces, public array|null $dependabot, public array|null $copilot, public Schema\ApiOverview\Domains|null $domains,)
331344
{
332345
}
333346
}

clients/GitHubEnterpriseCloud/src/Schema/RuleSuite.php

+14-6
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,15 @@
6969
"evaluation_result": {
7070
"enum": [
7171
"pass",
72-
"fail"
72+
"fail",
73+
"bypass",
74+
null
7375
],
74-
"type": "string",
75-
"description": "The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`."
76+
"type": [
77+
"string",
78+
"null"
79+
],
80+
"description": "The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. Null if no rules with `evaluate` enforcement status were run."
7681
},
7782
"rule_evaluations": {
7883
"type": "array",
@@ -124,8 +129,11 @@
124129
"description": "The type of rule."
125130
},
126131
"details": {
127-
"type": "string",
128-
"description": "Any associated details with the rule evaluation."
132+
"type": [
133+
"string",
134+
"null"
135+
],
136+
"description": "The detailed failure message for the rule. Null if the rule passed."
129137
}
130138
}
131139
},
@@ -184,7 +192,7 @@
184192
* repositoryId: The ID of the repository associated with the rule evaluation.
185193
* repositoryName: The name of the repository without the `.git` extension.
186194
* result: The result of the rule evaluations for rules with the `active` enforcement status.
187-
* evaluationResult: The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`.
195+
* evaluationResult: The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. Null if no rules with `evaluate` enforcement status were run.
188196
* ruleEvaluations: Details on the evaluated rules.
189197
*/
190198
public function __construct(public int|null $id, #[MapFrom('actor_id')]

clients/GitHubEnterpriseCloud/src/Schema/RuleSuite/RuleEvaluations.php

+6-3
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,11 @@
5757
"description": "The type of rule."
5858
},
5959
"details": {
60-
"type": "string",
61-
"description": "Any associated details with the rule evaluation."
60+
"type": [
61+
"string",
62+
"null"
63+
],
64+
"description": "The detailed failure message for the rule. Null if the rule passed."
6265
}
6366
}
6467
}';
@@ -80,7 +83,7 @@
8083
* enforcement: The enforcement level of this rule source.
8184
* result: The result of the evaluation of the individual rule.
8285
* ruleType: The type of rule.
83-
* details: Any associated details with the rule evaluation.
86+
* details: The detailed failure message for the rule. Null if the rule passed.
8487
*/
8588
public function __construct(#[MapFrom('rule_source')]
8689
public Schema\RuleSuite\RuleEvaluations\RuleSource|null $ruleSource, public string|null $enforcement, public string|null $result, #[MapFrom('rule_type')]

clients/GitHubEnterpriseCloud/src/Schema/RuleSuites.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@
6262
"evaluation_result": {
6363
"enum": [
6464
"pass",
65-
"fail"
65+
"fail",
66+
"bypass"
6667
],
6768
"type": "string",
6869
"description": "The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`."

etc/specs/GitHubEnterpriseCloud/current.spec.yaml

+21-6
Original file line numberDiff line numberDiff line change
@@ -23548,9 +23548,9 @@ paths:
2354823548
description: |-
2354923549
Store an artifact attestation and associate it with a repository.
2355023550

23551-
The authenticated user must have write permission to the repository and, if using a fine-grained access token the `attestations:write` permission is required.
23551+
The authenticated user must have write permission to the repository and, if using a fine-grained access token, the `attestations:write` permission is required.
2355223552

23553-
Artifact attestations are meant to be created using the [attest action](https://github.com/actions/attest). For amore information, see our guide on [using artifact attestations to establish a build's provenance](https://docs.github.com/enterprise-cloud@latest//actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds).
23553+
Artifact attestations are meant to be created using the [attest action](https://github.com/actions/attest). For more information, see our guide on [using artifact attestations to establish a build's provenance](https://docs.github.com/enterprise-cloud@latest//actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds).
2355423554
tags:
2355523555
- repos
2355623556
operationId: repos/create-attestation
@@ -77511,6 +77511,12 @@ components:
7751177511
type: string
7751277512
examples:
7751377513
- 192.0.2.1
77514+
codespaces:
77515+
type: array
77516+
items:
77517+
type: string
77518+
examples:
77519+
- 192.0.2.1
7751477520
dependabot:
7751577521
type: array
7751677522
items:
@@ -82408,6 +82414,7 @@ components:
8240882414
enum:
8240982415
- pass
8241082416
- fail
82417+
- bypass
8241182418
description: The result of the rule evaluations for rules with the `active`
8241282419
and `evaluate` enforcement statuses, demonstrating whether rules would
8241382420
pass or fail if all rules in the rule suite were `active`.
@@ -82458,13 +82465,18 @@ components:
8245882465
description: The result of the rule evaluations for rules with the `active`
8245982466
enforcement status.
8246082467
evaluation_result:
82461-
type: string
82468+
type:
82469+
- string
82470+
- 'null'
8246282471
enum:
8246382472
- pass
8246482473
- fail
82474+
- bypass
82475+
-
8246582476
description: The result of the rule evaluations for rules with the `active`
8246682477
and `evaluate` enforcement statuses, demonstrating whether rules would
82467-
pass or fail if all rules in the rule suite were `active`.
82478+
pass or fail if all rules in the rule suite were `active`. Null if no
82479+
rules with `evaluate` enforcement status were run.
8246882480
rule_evaluations:
8246982481
type: array
8247082482
description: Details on the evaluated rules.
@@ -82504,8 +82516,11 @@ components:
8250482516
type: string
8250582517
description: The type of rule.
8250682518
details:
82507-
type: string
82508-
description: Any associated details with the rule evaluation.
82519+
type:
82520+
- string
82521+
- 'null'
82522+
description: The detailed failure message for the rule. Null if the
82523+
rule passed.
8250982524
repository-advisory-vulnerability:
8251082525
description: A product affected by the vulnerability detailed in a repository
8251182526
security advisory.

0 commit comments

Comments
 (0)