Skip to content

Commit 9db05e4

Browse files
authored
Merge pull request #1547 from php-api-clients/GitHubEnterpriseCloud/from-1.1.4-deaa86f358a396abef8aff5fbc91b653-from-1.1.4-deaa86f358a396abef8aff5fbc91b653
2 parents 66bcad7 + b0ed1af commit 9db05e4

File tree

18 files changed

+312
-43
lines changed

18 files changed

+312
-43
lines changed

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

+26-26
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "ae847df328a461c8fd1824d1414a9038",
2+
"specHash": "deaa86f358a396abef8aff5fbc91b653",
33
"generatedFiles": {
44
"files": [
55
{
@@ -336,7 +336,7 @@
336336
},
337337
{
338338
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/DependabotAlertWithRepository.php",
339-
"hash": "75ba51785c304f6597baa599353c02a9"
339+
"hash": "8d48c8c5a31fa7c04687a6bd24b0cb73"
340340
},
341341
{
342342
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GetLicenseSyncStatus.php",
@@ -1112,7 +1112,7 @@
11121112
},
11131113
{
11141114
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/DependabotAlert.php",
1115-
"hash": "8c8da252bd4addab6fad4e3bdbfe00c4"
1115+
"hash": "639266358f356d96627cda010967e884"
11161116
},
11171117
{
11181118
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/DependabotSecret.php",
@@ -1776,31 +1776,31 @@
17761776
},
17771777
{
17781778
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertAutoDismissed.php",
1779-
"hash": "b8a1c59729ed0dbb67edccc33e35da77"
1779+
"hash": "1bc7605ca968b3289d16ae756bd910d5"
17801780
},
17811781
{
17821782
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertAutoReopened.php",
1783-
"hash": "a08820d4fa1477518a135ebb97763d01"
1783+
"hash": "63842e290fbb219dd079d973fd1939b1"
17841784
},
17851785
{
17861786
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertCreated.php",
1787-
"hash": "f321458ef7001f8b1fb94553336d0819"
1787+
"hash": "36ceef11153547cf7d7c51981d365612"
17881788
},
17891789
{
17901790
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertDismissed.php",
1791-
"hash": "03c833e4fd50dc18d41178cec9bfd2d2"
1791+
"hash": "0fd63fd4117f91908b43236be0e32d4d"
17921792
},
17931793
{
17941794
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertFixed.php",
1795-
"hash": "b2547107a536c0b2c7eb1dc83baa9cfd"
1795+
"hash": "209320230e754a6c35d0404e2806d1c9"
17961796
},
17971797
{
17981798
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertReintroduced.php",
1799-
"hash": "5fce21d251634089a808ea7eff2c17a0"
1799+
"hash": "e31c69837b58610b77c54b9c994fe70f"
18001800
},
18011801
{
18021802
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertReopened.php",
1803-
"hash": "f6bea97ebbc6e7b18629458cb5b5c3db"
1803+
"hash": "9a879a460373a0d552ea6a36b33bb97b"
18041804
},
18051805
{
18061806
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDeployKeyCreated.php",
@@ -2764,7 +2764,7 @@
27642764
},
27652765
{
27662766
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/DependabotAlertWithRepository\/Dependency.php",
2767-
"hash": "205f009b3eb302e7eea62456220cff64"
2767+
"hash": "68ae76d3909c8c1a8eee1db803d11476"
27682768
},
27692769
{
27702770
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GetLicenseSyncStatus\/ServerInstances.php",
@@ -5864,7 +5864,7 @@
58645864
},
58655865
{
58665866
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Meta.php",
5867-
"hash": "e68d3599a18b8dc4d594be6d17725d03"
5867+
"hash": "73ca63dcc41b4c882cf1f6c8c8e12e2d"
58685868
},
58695869
{
58705870
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Apps.php",
@@ -5932,7 +5932,7 @@
59325932
},
59335933
{
59345934
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Orgs.php",
5935-
"hash": "3119bcc18565a6c0afcd504762de994e"
5935+
"hash": "b3f15f630c7b75c52149e4861ee03724"
59365936
},
59375937
{
59385938
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Oidc.php",
@@ -5964,7 +5964,7 @@
59645964
},
59655965
{
59665966
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Repos.php",
5967-
"hash": "50c9958b2092d8e2f38da03a9ffaa5cf"
5967+
"hash": "c619cc54ecb935adcec39c4e703edf2b"
59685968
},
59695969
{
59705970
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Reactions.php",
@@ -5980,7 +5980,7 @@
59805980
},
59815981
{
59825982
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/DependencyGraph.php",
5983-
"hash": "563474966ff06eba9802aa80ec49da1d"
5983+
"hash": "76fdaf36f005de7f4eb4b734558ef64c"
59845984
},
59855985
{
59865986
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Git.php",
@@ -6000,11 +6000,11 @@
60006000
},
60016001
{
60026002
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Search.php",
6003-
"hash": "b29aae60168b42088fd75b4b875fef48"
6003+
"hash": "207c460950ce2fdddf15b924c9e54c8e"
60046004
},
60056005
{
60066006
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Users.php",
6007-
"hash": "abc7b2787f42001de1af5078176e1530"
6007+
"hash": "cd145918d80f5d8f07b9617c2485a292"
60086008
},
60096009
{
60106010
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operations.php",
@@ -6334,13 +6334,9 @@
63346334
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertReopenedByUser\/Alert\/MostRecentInstance\/Message.php",
63356335
"hash": "c8261186a1d512e54143498b950fb8df"
63366336
},
6337-
{
6338-
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet2BF61F22\/TietD40E495C\/TietD2DCD6B6\/Tiet9D8D9B32.php",
6339-
"hash": "5646b100621056d65fed8a01c13c835e"
6340-
},
63416337
{
63426338
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/DependabotAlert\/Dependency.php",
6343-
"hash": "6da605b1015c3579582a0aaa1c52a402"
6339+
"hash": "3bb756f9f567a5e725d691fd7f80664f"
63446340
},
63456341
{
63466342
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet0B6D5155\/Tiet9712C7F9\/Tiet6BF72693\/Tiet5B5B145C.php",
@@ -27968,7 +27964,7 @@
2796827964
},
2796927965
{
2797027966
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Dependabot\/Alerts\/AlertNumber.php",
27971-
"hash": "97af5dd2dbcdb33d67258d99a60ce1cb"
27967+
"hash": "c025ca120a940b2e9b04f8bb8e96051d"
2797227968
},
2797327969
{
2797427970
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Dependabot\/Secrets.php",
@@ -30032,7 +30028,7 @@
3003230028
},
3003330029
{
3003430030
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/DependabotAlert.php",
30035-
"hash": "a20d8f34df0884f2940f9c2c1aef5610"
30031+
"hash": "75eec39d40a555f6c9e8533031eff044"
3003630032
},
3003730033
{
3003830034
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/DeployKey.php",
@@ -33912,7 +33908,7 @@
3391233908
},
3391333909
{
3391433910
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeSecurity\/CreateConfigurationForEnterprise\/Request\/ApplicationJson.php",
33915-
"hash": "5a99e534007ad84407aec08f264b577f"
33911+
"hash": "947509c6277d7593036c2a2409178376"
3391633912
},
3391733913
{
3391833914
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet8DAAD835\/Tiet93FE8D1C\/TietAC26D50C\/Tiet27D4E07F.php",
@@ -33924,7 +33920,7 @@
3392433920
},
3392533921
{
3392633922
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeSecurity\/UpdateEnterpriseConfiguration\/Request\/ApplicationJson.php",
33927-
"hash": "9aa1030b46fd9713cbda9e8318603275"
33923+
"hash": "f2be353a5dc26f0d35886cc2604f01cc"
3392833924
},
3392933925
{
3393033926
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeSecurity\/AttachEnterpriseConfiguration\/Request\/ApplicationJson.php",
@@ -35221,6 +35217,10 @@
3522135217
{
3522235218
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/ExemptionRequestSecretScanningClosure.php",
3522335219
"hash": "b1ffae6fd762fd0812be29cb897b0032"
35220+
},
35221+
{
35222+
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet1DA73592\/TietBB556EE9\/Tiet519FED8E\/TietFC41A28A.php",
35223+
"hash": "99f644b6d3dea8df2c1bc2aa5024e9d6"
3522435224
}
3522535225
]
3522635226
},

clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Dependabot/Alerts/AlertNumber.php

+19
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
339339
$properties['scope'] = $value;
340340

341341
after_scope:
342+
343+
$value = $payload['relationship'] ?? null;
344+
345+
if ($value === null) {
346+
$properties['relationship'] = null;
347+
goto after_relationship;
348+
}
349+
350+
$properties['relationship'] = $value;
351+
352+
after_relationship:
342353
} catch (Throwable $exception) {
343354
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotAlert\Dependency', $exception, stack: $this->hydrationStack);
344355
}
@@ -1626,6 +1637,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
16261637

16271638
after_scope: $result['scope'] = $scope;
16281639

1640+
$relationship = $object->relationship;
1641+
1642+
if ($relationship === null) {
1643+
goto after_relationship;
1644+
}
1645+
1646+
after_relationship: $result['relationship'] = $relationship;
1647+
16291648
return $result;
16301649
}
16311650

clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DependabotAlert.php

+19
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
515515
$properties['scope'] = $value;
516516

517517
after_scope:
518+
519+
$value = $payload['relationship'] ?? null;
520+
521+
if ($value === null) {
522+
$properties['relationship'] = null;
523+
goto after_relationship;
524+
}
525+
526+
$properties['relationship'] = $value;
527+
528+
after_relationship:
518529
} catch (Throwable $exception) {
519530
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotAlert\Dependency', $exception, stack: $this->hydrationStack);
520531
}
@@ -5523,6 +5534,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
55235534

55245535
after_scope: $result['scope'] = $scope;
55255536

5537+
$relationship = $object->relationship;
5538+
5539+
if ($relationship === null) {
5540+
goto after_relationship;
5541+
}
5542+
5543+
after_relationship: $result['relationship'] = $relationship;
5544+
55265545
return $result;
55275546
}
55285547

+23-4
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
declare(strict_types=1);
44

5-
namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\AliasAbstract\Tiet2BF61F22\TietD40E495C\TietD2DCD6B6;
5+
namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\AliasAbstract\Tiet1DA73592\TietBB556EE9\Tiet519FED8E;
66

77
use ApiClients\Client\GitHubEnterpriseCloud\Schema;
88
use EventSauce\ObjectHydrator\MapFrom;
99

10-
abstract readonly class Tiet9D8D9B32
10+
abstract readonly class TietFC41A28A
1111
{
1212
public const SCHEMA_JSON = '{
1313
"type": "object",
@@ -51,6 +51,20 @@
5151
],
5252
"description": "The execution scope of the vulnerable dependency.",
5353
"readOnly": true
54+
},
55+
"relationship": {
56+
"enum": [
57+
"unknown",
58+
"direct",
59+
"transitive",
60+
null
61+
],
62+
"type": [
63+
"string",
64+
"null"
65+
],
66+
"description": "The vulnerable dependency\'s relationship to your project.\\n\\n> [!NOTE]\\n> We are rolling out support for dependency relationship across ecosystems. This value will be \\"unknown\\" for all dependencies in unsupported ecosystems.\\n",
67+
"readOnly": true
5468
}
5569
},
5670
"description": "Details for the vulnerable dependency.",
@@ -64,16 +78,21 @@
6478
"name": "generated"
6579
},
6680
"manifest_path": "generated",
67-
"scope": "development"
81+
"scope": "development",
82+
"relationship": "transitive"
6883
}';
6984

7085
/**
7186
* package: Details for the vulnerable package.
7287
* manifestPath: The full path to the dependency manifest file, relative to the root of the repository.
7388
* scope: The execution scope of the vulnerable dependency.
89+
* relationship: The vulnerable dependency's relationship to your project.
90+
91+
> [!NOTE]
92+
> We are rolling out support for dependency relationship across ecosystems. This value will be "unknown" for all dependencies in unsupported ecosystems.
7493
*/
7594
public function __construct(public Schema\DependabotAlertPackage|null $package, #[MapFrom('manifest_path')]
76-
public string|null $manifestPath, public string|null $scope,)
95+
public string|null $manifestPath, public string|null $scope, public string|null $relationship,)
7796
{
7897
}
7998
}

clients/GitHubEnterpriseCloud/src/Schema/CodeSecurity/CreateConfigurationForEnterprise/Request/ApplicationJson.php

+14-1
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,16 @@
170170
"description": "The enablement status of Copilot secret scanning",
171171
"default": "disabled"
172172
},
173+
"secret_scanning_delegated_alert_dismissal": {
174+
"enum": [
175+
"enabled",
176+
"disabled",
177+
"not_set"
178+
],
179+
"type": "string",
180+
"description": "The enablement status of secret scanning delegated alert dismissal",
181+
"default": "disabled"
182+
},
173183
"private_vulnerability_reporting": {
174184
"enum": [
175185
"enabled",
@@ -215,6 +225,7 @@
215225
"secret_scanning_validity_checks": "enabled",
216226
"secret_scanning_non_provider_patterns": "enabled",
217227
"secret_scanning_generic_secrets": "enabled",
228+
"secret_scanning_delegated_alert_dismissal": "enabled",
218229
"private_vulnerability_reporting": "enabled",
219230
"enforcement": "enforced"
220231
}';
@@ -235,6 +246,7 @@
235246
* secretScanningValidityChecks: The enablement status of secret scanning validity checks
236247
* secretScanningNonProviderPatterns: The enablement status of secret scanning non provider patterns
237248
* secretScanningGenericSecrets: The enablement status of Copilot secret scanning
249+
* secretScanningDelegatedAlertDismissal: The enablement status of secret scanning delegated alert dismissal
238250
* privateVulnerabilityReporting: The enablement status of private vulnerability reporting
239251
* enforcement: The enforcement status for a security configuration
240252
*/
@@ -251,7 +263,8 @@ public function __construct(public string $name, public string $description, #[M
251263
public string|null $secretScanningPushProtection, #[MapFrom('secret_scanning_validity_checks')]
252264
public string|null $secretScanningValidityChecks, #[MapFrom('secret_scanning_non_provider_patterns')]
253265
public string|null $secretScanningNonProviderPatterns, #[MapFrom('secret_scanning_generic_secrets')]
254-
public string|null $secretScanningGenericSecrets, #[MapFrom('private_vulnerability_reporting')]
266+
public string|null $secretScanningGenericSecrets, #[MapFrom('secret_scanning_delegated_alert_dismissal')]
267+
public string|null $secretScanningDelegatedAlertDismissal, #[MapFrom('private_vulnerability_reporting')]
255268
public string|null $privateVulnerabilityReporting, public string|null $enforcement,)
256269
{
257270
}

clients/GitHubEnterpriseCloud/src/Schema/CodeSecurity/UpdateEnterpriseConfiguration/Request/ApplicationJson.php

+14-1
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,16 @@
155155
"description": "The enablement status of Copilot secret scanning",
156156
"default": "disabled"
157157
},
158+
"secret_scanning_delegated_alert_dismissal": {
159+
"enum": [
160+
"enabled",
161+
"disabled",
162+
"not_set"
163+
],
164+
"type": "string",
165+
"description": "The enablement status of secret scanning delegated alert dismissal",
166+
"default": "disabled"
167+
},
158168
"private_vulnerability_reporting": {
159169
"enum": [
160170
"enabled",
@@ -198,6 +208,7 @@
198208
"secret_scanning_validity_checks": "enabled",
199209
"secret_scanning_non_provider_patterns": "enabled",
200210
"secret_scanning_generic_secrets": "enabled",
211+
"secret_scanning_delegated_alert_dismissal": "enabled",
201212
"private_vulnerability_reporting": "enabled",
202213
"enforcement": "enforced"
203214
}';
@@ -218,6 +229,7 @@
218229
* secretScanningValidityChecks: The enablement status of secret scanning validity checks
219230
* secretScanningNonProviderPatterns: The enablement status of secret scanning non-provider patterns
220231
* secretScanningGenericSecrets: The enablement status of Copilot secret scanning
232+
* secretScanningDelegatedAlertDismissal: The enablement status of secret scanning delegated alert dismissal
221233
* privateVulnerabilityReporting: The enablement status of private vulnerability reporting
222234
* enforcement: The enforcement status for a security configuration
223235
*/
@@ -234,7 +246,8 @@ public function __construct(public string|null $name, public string|null $descri
234246
public string|null $secretScanningPushProtection, #[MapFrom('secret_scanning_validity_checks')]
235247
public string|null $secretScanningValidityChecks, #[MapFrom('secret_scanning_non_provider_patterns')]
236248
public string|null $secretScanningNonProviderPatterns, #[MapFrom('secret_scanning_generic_secrets')]
237-
public string|null $secretScanningGenericSecrets, #[MapFrom('private_vulnerability_reporting')]
249+
public string|null $secretScanningGenericSecrets, #[MapFrom('secret_scanning_delegated_alert_dismissal')]
250+
public string|null $secretScanningDelegatedAlertDismissal, #[MapFrom('private_vulnerability_reporting')]
238251
public string|null $privateVulnerabilityReporting, public string|null $enforcement,)
239252
{
240253
}

0 commit comments

Comments
 (0)