Skip to content

Commit 3bfa44f

Browse files
authored
Merge pull request #1283 from php-api-clients/GitHub/from-1.1.4-12cb03fcf4474304824f71a72f6d6238-from-1.1.4-12cb03fcf4474304824f71a72f6d6238
2 parents 204b729 + c8fe4cd commit 3bfa44f

File tree

17 files changed

+277
-28
lines changed

17 files changed

+277
-28
lines changed

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

+17-17
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "27d2025567219eabd469390370e022c1",
2+
"specHash": "12cb03fcf4474304824f71a72f6d6238",
33
"generatedFiles": {
44
"files": [
55
{
@@ -400,7 +400,7 @@
400400
},
401401
{
402402
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeScanningAlertRule.php",
403-
"hash": "f064fca88803f12f782b11188bad5429"
403+
"hash": "9fc242a2a4d28599c7bd0845889c47eb"
404404
},
405405
{
406406
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeScanningAnalysisToolVersion.php",
@@ -440,7 +440,7 @@
440440
},
441441
{
442442
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeScanningOrganizationAlertItems.php",
443-
"hash": "3710c419a0a4d200bcd85f0227a47fbc"
443+
"hash": "f37228ffa5baf182bffc1d0b7530cf6b"
444444
},
445445
{
446446
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodespaceMachine.php",
@@ -844,15 +844,15 @@
844844
},
845845
{
846846
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeScanningAlertRuleSummary.php",
847-
"hash": "3d313d12408b39ac2145d20fa08ad45c"
847+
"hash": "c5e4487bb2f2a1fc55261c3c06cdab89"
848848
},
849849
{
850850
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeScanningAlertItems.php",
851-
"hash": "25e47067404179c058125d6893424f86"
851+
"hash": "de27c3958f8f4de9bc13e0950722abe5"
852852
},
853853
{
854854
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeScanningAlert.php",
855-
"hash": "a77284a1697008d3074e84f8086ec606"
855+
"hash": "b370451840d6f1e8bf0b576de497a2df"
856856
},
857857
{
858858
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeScanningAlertSetState.php",
@@ -5612,7 +5612,7 @@
56125612
},
56135613
{
56145614
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Repos.php",
5615-
"hash": "6d99341ffc796ac03a95943c1ccee969"
5615+
"hash": "af3d3a3094434c46deb56bfd146053fc"
56165616
},
56175617
{
56185618
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php",
@@ -29736,11 +29736,11 @@
2973629736
},
2973729737
{
2973829738
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeSecurityConfiguration.php",
29739-
"hash": "2929d09f16a601a5e6f975ba05b59593"
29739+
"hash": "b2f59f01b94913f3d1a89504dde0b9fc"
2974029740
},
2974129741
{
2974229742
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeSecurityDefaultConfigurations.php",
29743-
"hash": "c0f711c94f6e2ee9fa37caaf94926b16"
29743+
"hash": "8ddbbdc7b8bfab1c3b91c4dc70408f63"
2974429744
},
2974529745
{
2974629746
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeSecurityConfigurationRepositories.php",
@@ -29772,11 +29772,11 @@
2977229772
},
2977329773
{
2977429774
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeSecurity\/CreateConfiguration\/Request\/ApplicationJson.php",
29775-
"hash": "6a73bd5ff2999e5fabd297689772695b"
29775+
"hash": "e7b4a6ed3db038b78c345e3858310437"
2977629776
},
2977729777
{
2977829778
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeSecurity\/UpdateConfiguration\/Request\/ApplicationJson.php",
29779-
"hash": "3e6bd2e263559ef3e41ee383f8456b0b"
29779+
"hash": "20d35e34f6680647d2573edab241377b"
2978029780
},
2978129781
{
2978229782
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeSecurity\/AttachConfiguration\/Request\/ApplicationJson.php",
@@ -29788,7 +29788,7 @@
2978829788
},
2978929789
{
2979029790
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/CodeSecurity\/SetConfigurationAsDefault\/Response\/ApplicationJson\/Ok.php",
29791-
"hash": "77824b8868a85c0cba42241c1794aa49"
29791+
"hash": "a9fc6ccdcf6905ac3c34891ff7a0e3f5"
2979229792
},
2979329793
{
2979429794
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/CodeSecurity.php",
@@ -29816,23 +29816,23 @@
2981629816
},
2981729817
{
2981829818
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations.php",
29819-
"hash": "2721e9279c5ded99d6e11c3e0b051a52"
29819+
"hash": "0b954781d811dc57c0cb6babcb558261"
2982029820
},
2982129821
{
2982229822
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations\/Defaults.php",
2982329823
"hash": "3f2cfa2c7260844ad8936a20ad4125d5"
2982429824
},
2982529825
{
2982629826
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations\/ConfigurationId.php",
29827-
"hash": "a46a61151298e9426e71dbce9890eb33"
29827+
"hash": "43ed702a6db58b95e65eed8bd8f002bd"
2982829828
},
2982929829
{
2983029830
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations\/ConfigurationId\/Attach.php",
2983129831
"hash": "25c6c6a9788e4d95b7191cd7998e2ff3"
2983229832
},
2983329833
{
2983429834
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations\/ConfigurationId\/Defaults.php",
29835-
"hash": "0988e5a54185c8882a54b2e8d17e8274"
29835+
"hash": "b8642ec16a84428d1b41df3685980d04"
2983629836
},
2983729837
{
2983829838
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations\/ConfigurationId\/Repositories.php",
@@ -30380,11 +30380,11 @@
3038030380
},
3038130381
{
3038230382
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeSecurityConfigurationForRepository.php",
30383-
"hash": "4784a45bcc6839be000b61414c6fc878"
30383+
"hash": "bc5b87c96f040b8b0cf5f87ed821bd18"
3038430384
},
3038530385
{
3038630386
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CodeSecurityConfiguration.php",
30387-
"hash": "6722483c203b44b54f486cfc06c938de"
30387+
"hash": "7dcec4c06679a3cc92277d71c122ff67"
3038830388
},
3038930389
{
3039030390
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleViolationError.php",

clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/CodeSecurity/Configurations.php

+19
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Code
280280

281281
after_secretScanningValidityChecks:
282282

283+
$value = $payload['secret_scanning_non_provider_patterns'] ?? null;
284+
285+
if ($value === null) {
286+
$properties['secretScanningNonProviderPatterns'] = null;
287+
goto after_secretScanningNonProviderPatterns;
288+
}
289+
290+
$properties['secretScanningNonProviderPatterns'] = $value;
291+
292+
after_secretScanningNonProviderPatterns:
293+
283294
$value = $payload['private_vulnerability_reporting'] ?? null;
284295

285296
if ($value === null) {
@@ -644,6 +655,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
644655

645656
after_secretScanningValidityChecks: $result['secret_scanning_validity_checks'] = $secretScanningValidityChecks;
646657

658+
$secretScanningNonProviderPatterns = $object->secretScanningNonProviderPatterns;
659+
660+
if ($secretScanningNonProviderPatterns === null) {
661+
goto after_secretScanningNonProviderPatterns;
662+
}
663+
664+
after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns;
665+
647666
$privateVulnerabilityReporting = $object->privateVulnerabilityReporting;
648667

649668
if ($privateVulnerabilityReporting === null) {

clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/CodeSecurity/Configurations/ConfigurationId.php

+19
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Code
219219

220220
after_secretScanningValidityChecks:
221221

222+
$value = $payload['secret_scanning_non_provider_patterns'] ?? null;
223+
224+
if ($value === null) {
225+
$properties['secretScanningNonProviderPatterns'] = null;
226+
goto after_secretScanningNonProviderPatterns;
227+
}
228+
229+
$properties['secretScanningNonProviderPatterns'] = $value;
230+
231+
after_secretScanningNonProviderPatterns:
232+
222233
$value = $payload['private_vulnerability_reporting'] ?? null;
223234

224235
if ($value === null) {
@@ -692,6 +703,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
692703

693704
after_secretScanningValidityChecks: $result['secret_scanning_validity_checks'] = $secretScanningValidityChecks;
694705

706+
$secretScanningNonProviderPatterns = $object->secretScanningNonProviderPatterns;
707+
708+
if ($secretScanningNonProviderPatterns === null) {
709+
goto after_secretScanningNonProviderPatterns;
710+
}
711+
712+
after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns;
713+
695714
$privateVulnerabilityReporting = $object->privateVulnerabilityReporting;
696715

697716
if ($privateVulnerabilityReporting === null) {

clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/CodeSecurity/Configurations/ConfigurationId/Defaults.php

+19
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Code
269269

270270
after_secretScanningValidityChecks:
271271

272+
$value = $payload['secret_scanning_non_provider_patterns'] ?? null;
273+
274+
if ($value === null) {
275+
$properties['secretScanningNonProviderPatterns'] = null;
276+
goto after_secretScanningNonProviderPatterns;
277+
}
278+
279+
$properties['secretScanningNonProviderPatterns'] = $value;
280+
281+
after_secretScanningNonProviderPatterns:
282+
272283
$value = $payload['private_vulnerability_reporting'] ?? null;
273284

274285
if ($value === null) {
@@ -682,6 +693,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
682693

683694
after_secretScanningValidityChecks: $result['secret_scanning_validity_checks'] = $secretScanningValidityChecks;
684695

696+
$secretScanningNonProviderPatterns = $object->secretScanningNonProviderPatterns;
697+
698+
if ($secretScanningNonProviderPatterns === null) {
699+
goto after_secretScanningNonProviderPatterns;
700+
}
701+
702+
after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns;
703+
685704
$privateVulnerabilityReporting = $object->privateVulnerabilityReporting;
686705

687706
if ($privateVulnerabilityReporting === null) {

clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CodeSecurityConfiguration.php

+19
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Code
268268

269269
after_secretScanningValidityChecks:
270270

271+
$value = $payload['secret_scanning_non_provider_patterns'] ?? null;
272+
273+
if ($value === null) {
274+
$properties['secretScanningNonProviderPatterns'] = null;
275+
goto after_secretScanningNonProviderPatterns;
276+
}
277+
278+
$properties['secretScanningNonProviderPatterns'] = $value;
279+
280+
after_secretScanningNonProviderPatterns:
281+
271282
$value = $payload['private_vulnerability_reporting'] ?? null;
272283

273284
if ($value === null) {
@@ -681,6 +692,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
681692

682693
after_secretScanningValidityChecks: $result['secret_scanning_validity_checks'] = $secretScanningValidityChecks;
683694

695+
$secretScanningNonProviderPatterns = $object->secretScanningNonProviderPatterns;
696+
697+
if ($secretScanningNonProviderPatterns === null) {
698+
goto after_secretScanningNonProviderPatterns;
699+
}
700+
701+
after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns;
702+
684703
$privateVulnerabilityReporting = $object->privateVulnerabilityReporting;
685704

686705
if ($privateVulnerabilityReporting === null) {

clients/GitHub/src/Schema/CodeScanningAlert.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@
326326
},
327327
"full_description": {
328328
"type": "string",
329-
"description": "description of the rule used to detect the alert."
329+
"description": "A description of the rule used to detect the alert."
330330
},
331331
"tags": {
332332
"type": [

clients/GitHub/src/Schema/CodeScanningAlertItems.php

+22-1
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,10 @@
324324
"type": "string",
325325
"description": "A short description of the rule used to detect the alert."
326326
},
327+
"full_description": {
328+
"type": "string",
329+
"description": "A description of the rule used to detect the alert."
330+
},
327331
"tags": {
328332
"type": [
329333
"array",
@@ -333,6 +337,20 @@
333337
"type": "string"
334338
},
335339
"description": "A set of tags applicable for the rule."
340+
},
341+
"help": {
342+
"type": [
343+
"string",
344+
"null"
345+
],
346+
"description": "Detailed documentation for the rule as GitHub Flavored Markdown."
347+
},
348+
"help_uri": {
349+
"type": [
350+
"string",
351+
"null"
352+
],
353+
"description": "A link to the documentation for the rule used to detect the alert."
336354
}
337355
}
338356
},
@@ -487,7 +505,10 @@
487505
"severity": "error",
488506
"security_severity_level": "low",
489507
"description": "generated",
490-
"tags": null
508+
"full_description": "generated",
509+
"tags": null,
510+
"help": "generated",
511+
"help_uri": "generated"
491512
},
492513
"tool": {
493514
"name": "generated",

clients/GitHub/src/Schema/CodeScanningAlertRule.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
},
5757
"full_description": {
5858
"type": "string",
59-
"description": "description of the rule used to detect the alert."
59+
"description": "A description of the rule used to detect the alert."
6060
},
6161
"tags": {
6262
"type": [
@@ -104,7 +104,7 @@
104104
* severity: The severity of the alert.
105105
* securitySeverityLevel: The security severity of the alert.
106106
* description: A short description of the rule used to detect the alert.
107-
* fullDescription: description of the rule used to detect the alert.
107+
* fullDescription: A description of the rule used to detect the alert.
108108
* tags: A set of tags applicable for the rule.
109109
* help: Detailed documentation for the rule as GitHub Flavored Markdown.
110110
* helpUri: A link to the documentation for the rule used to detect the alert.

clients/GitHub/src/Schema/CodeScanningAlertRuleSummary.php

+28-2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@
5454
"type": "string",
5555
"description": "A short description of the rule used to detect the alert."
5656
},
57+
"full_description": {
58+
"type": "string",
59+
"description": "A description of the rule used to detect the alert."
60+
},
5761
"tags": {
5862
"type": [
5963
"array",
@@ -63,6 +67,20 @@
6367
"type": "string"
6468
},
6569
"description": "A set of tags applicable for the rule."
70+
},
71+
"help": {
72+
"type": [
73+
"string",
74+
"null"
75+
],
76+
"description": "Detailed documentation for the rule as GitHub Flavored Markdown."
77+
},
78+
"help_uri": {
79+
"type": [
80+
"string",
81+
"null"
82+
],
83+
"description": "A link to the documentation for the rule used to detect the alert."
6684
}
6785
}
6886
}';
@@ -74,7 +92,10 @@
7492
"severity": "error",
7593
"security_severity_level": "low",
7694
"description": "generated",
77-
"tags": null
95+
"full_description": "generated",
96+
"tags": null,
97+
"help": "generated",
98+
"help_uri": "generated"
7899
}';
79100

80101
/**
@@ -83,10 +104,15 @@
83104
* severity: The severity of the alert.
84105
* securitySeverityLevel: The security severity of the alert.
85106
* description: A short description of the rule used to detect the alert.
107+
* fullDescription: A description of the rule used to detect the alert.
86108
* tags: A set of tags applicable for the rule.
109+
* help: Detailed documentation for the rule as GitHub Flavored Markdown.
110+
* helpUri: A link to the documentation for the rule used to detect the alert.
87111
*/
88112
public function __construct(public string|null $id, public string|null $name, public string|null $severity, #[MapFrom('security_severity_level')]
89-
public string|null $securitySeverityLevel, public string|null $description, public array|null $tags,)
113+
public string|null $securitySeverityLevel, public string|null $description, #[MapFrom('full_description')]
114+
public string|null $fullDescription, public array|null $tags, public string|null $help, #[MapFrom('help_uri')]
115+
public string|null $helpUri,)
90116
{
91117
}
92118
}

0 commit comments

Comments
 (0)