diff --git a/clients/GitHubEnterprise-3.13/etc/openapi-client-generator.state b/clients/GitHubEnterprise-3.13/etc/openapi-client-generator.state index dd2fe2d8fee..913669c0bf7 100644 --- a/clients/GitHubEnterprise-3.13/etc/openapi-client-generator.state +++ b/clients/GitHubEnterprise-3.13/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "8985016ac4b27cc23057fb31dee10264", + "specHash": "71747b16e45e0f2a54b8e1ca561b75d5", "generatedFiles": { "files": [ { @@ -1596,7 +1596,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForEnterprise.php", - "hash": "f4d6f6268171e5bdac4c36bd524d933e" + "hash": "1f68b2e0be822f1fe631c2ecbf33af29" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForEnterpriseTest.php", @@ -3264,7 +3264,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForOrg.php", - "hash": "e19123d6c0aeecf27c8c9359cfa37d73" + "hash": "eea752ff872e32ab676814f4711443ce" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForOrgTest.php", @@ -7508,7 +7508,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForRepo.php", - "hash": "e422d820f3a178650a8a21a39af7414f" + "hash": "cef6f06a6686302752fdf3b6a631d9a4" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForRepoTest.php", @@ -13236,7 +13236,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/GlobalAdvisory.php", - "hash": "86de612bb69214b911c9aae2aefd17fd" + "hash": "35029681934336b952a05480c07a0f3e" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/BasicError.php", @@ -17078,10 +17078,6 @@ "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/GlobalAdvisory\/Cwes.php", "hash": "d9634fd912b4375b20de87e707e1c45e" }, - { - "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/GlobalAdvisory\/Epss.php", - "hash": "a0e029eb84b40bf890eb5cb6a6ca8c98" - }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/GlobalAdvisory\/Credits.php", "hash": "cdb9e33f008a8d4cf57b16e6735b95de" @@ -26504,7 +26500,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Dependabot.php", - "hash": "111042e8c75e48fe50f41cf5f1bf5f32" + "hash": "9cc2dd2fb16ad3ef0e657d9ca943f44f" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Checks.php", @@ -26948,7 +26944,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", - "hash": "0fad69374da0792d6207a7cc43f16ccb" + "hash": "fb8d914498dc8ddad6eaa4249ed98e34" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Two.php", @@ -26956,7 +26952,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php", - "hash": "6c162baaded82b4c6734e822b560ac43" + "hash": "944582af066e6fc6c831c4e7b872a838" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", @@ -27160,11 +27156,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "b5ddf5ed50643698add8a2c384528e11" + "hash": "2fb5474325448bccbcb22bb7d1158ea1" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "dbaa0cc35ad0b17f0e6f5565b7c7a283" + "hash": "54beea339c8099994a522e19c9c55b8c" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -27216,7 +27212,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Dependabot.php", - "hash": "08bd8e160023bd2237dee15bd8567253" + "hash": "41f38bbe9a82db393bb4c578316bf591" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Billing.php", @@ -27668,7 +27664,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Advisories\/GhsaId.php", - "hash": "2c92e8991c2c9b8346d0136b96948f65" + "hash": "456a0b98504643ec116927b80d00d8cc" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/App.php", @@ -29944,7 +29940,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrators.php", - "hash": "a80554fdc52f4357f7577e6a10c8b69d" + "hash": "151d6e808352d3ce2a34abb1d984740b" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/ApiOverview\/Domains\/ActionsInbound.php", @@ -29957,6 +29953,10 @@ { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietD29A14FC\/Tiet805269F1\/TietA52E66B2\/Tiet7F583E73.php", "hash": "bdc8166ddf7c904ff62c49a973846e7e" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/SecurityAdvisoryEpss.php", + "hash": "d40638f97574f7a84a0e52535948cc82" } ] }, diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Advisories/GhsaId.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Advisories/GhsaId.php index 4c884a5b4e6..fb83c255f95 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Advisories/GhsaId.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Advisories/GhsaId.php @@ -10,7 +10,7 @@ use ApiClients\Client\GitHubEnterprise\Schema\CvssSeverities\CvssVThree; use ApiClients\Client\GitHubEnterprise\Schema\GlobalAdvisory; use ApiClients\Client\GitHubEnterprise\Schema\GlobalAdvisory\Cvss; -use ApiClients\Client\GitHubEnterprise\Schema\GlobalAdvisory\Epss; +use ApiClients\Client\GitHubEnterprise\Schema\SecurityAdvisoryEpss; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; use EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems; @@ -51,7 +51,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterprise\Schema\CvssSeverities' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CvssSeverities($payload), 'ApiClients\Client\GitHubEnterprise\Schema\CvssSeverities\CvssVThree' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CvssSeverities⚡️CvssVThree($payload), 'ApiClients\Client\GitHubEnterprise\Schema\CvssSeverities\CvssVFour' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CvssSeverities⚡️CvssVFour($payload), - 'ApiClients\Client\GitHubEnterprise\Schema\GlobalAdvisory\Epss' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️GlobalAdvisory⚡️Epss($payload), + 'ApiClients\Client\GitHubEnterprise\Schema\SecurityAdvisoryEpss' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecurityAdvisoryEpss($payload), 'ApiClients\Client\GitHubEnterprise\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️BasicError($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -300,17 +300,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_cvssSeverities: - $value = $payload['cwes'] ?? null; - - if ($value === null) { - $properties['cwes'] = null; - goto after_cwes; - } - - $properties['cwes'] = $value; - - after_cwes: - $value = $payload['epss'] ?? null; if ($value === null) { @@ -321,7 +310,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema if (is_array($value)) { try { $this->hydrationStack[] = 'epss'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️GlobalAdvisory⚡️Epss($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecurityAdvisoryEpss($value); } finally { array_pop($this->hydrationStack); } @@ -331,6 +320,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_epss: + $value = $payload['cwes'] ?? null; + + if ($value === null) { + $properties['cwes'] = null; + goto after_cwes; + } + + $properties['cwes'] = $value; + + after_cwes: + $value = $payload['credits'] ?? null; if ($value === null) { @@ -538,7 +538,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️GlobalAdvisory⚡️Epss(array $payload): Epss + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecurityAdvisoryEpss(array $payload): SecurityAdvisoryEpss { $properties = []; $missingFields = []; @@ -565,17 +565,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_percentile: } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\GlobalAdvisory\Epss', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SecurityAdvisoryEpss', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(Epss::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(SecurityAdvisoryEpss::class, $missingFields, stack: $this->hydrationStack); } try { - return new Epss(...$properties); + return new SecurityAdvisoryEpss(...$properties); } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\GlobalAdvisory\Epss', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SecurityAdvisoryEpss', $exception, stack: $this->hydrationStack); } } @@ -678,7 +678,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterprise\Schema\CvssSeverities' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CvssSeverities($object), 'ApiClients\Client\GitHubEnterprise\Schema\CvssSeverities\CvssVThree' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CvssSeverities⚡️CvssVThree($object), 'ApiClients\Client\GitHubEnterprise\Schema\CvssSeverities\CvssVFour' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CvssSeverities⚡️CvssVFour($object), - 'ApiClients\Client\GitHubEnterprise\Schema\GlobalAdvisory\Epss' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️GlobalAdvisory⚡️Epss($object), + 'ApiClients\Client\GitHubEnterprise\Schema\SecurityAdvisoryEpss' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecurityAdvisoryEpss($object), 'ApiClients\Client\GitHubEnterprise\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️BasicError($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -890,6 +890,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $cvssSeverities = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CvssSeverities($cvssSeverities); after_cvssSeverities: $result['cvss_severities'] = $cvssSeverities; + $epss = $object->epss; + + if ($epss === null) { + goto after_epss; + } + + $epss = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecurityAdvisoryEpss($epss); + after_epss: $result['epss'] = $epss; + $cwes = $object->cwes; if ($cwes === null) { @@ -905,15 +914,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $cwes = $cwesSerializer0->serialize($cwes, $this); after_cwes: $result['cwes'] = $cwes; - $epss = $object->epss; - - if ($epss === null) { - goto after_epss; - } - - $epss = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️GlobalAdvisory⚡️Epss($epss); - after_epss: $result['epss'] = $epss; - $credits = $object->credits; if ($credits === null) { @@ -1030,9 +1030,9 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️GlobalAdvisory⚡️Epss(mixed $object): mixed + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecurityAdvisoryEpss(mixed $object): mixed { - assert($object instanceof Epss); + assert($object instanceof SecurityAdvisoryEpss); $result = []; $percentage = $object->percentage; diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Hydrators.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrators.php index bb72347025a..701b038a181 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrators.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Hydrators.php @@ -721,7 +721,7 @@ public function hydrateObject(string $className, array $payload): object '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Operations\\EnterpriseAdmin\\UpdateUsernameForUser\\Response\\ApplicationJson\\Accepted\\Application\\Json' => $this->getObjectMapperOperation🌀Admin🌀Users🌀Username()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Authorization', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Authorization\\App', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\ScopedInstallation', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\AppPermissions' => $this->getObjectMapperOperation🌀Admin🌀Users🌀Username🌀Authorizations()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\BasicError', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\ValidationErrorSimple' => $this->getObjectMapperOperation🌀Advisories()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\GlobalAdvisory', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\GlobalAdvisory\\Cvss', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\CvssSeverities', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\CvssSeverities\\CvssVThree', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\CvssSeverities\\CvssVFour', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\GlobalAdvisory\\Epss' => $this->getObjectMapperOperation🌀Advisories🌀GhsaId()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\GlobalAdvisory', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\GlobalAdvisory\\Cvss', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\CvssSeverities', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\CvssSeverities\\CvssVThree', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\CvssSeverities\\CvssVFour', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\SecurityAdvisoryEpss' => $this->getObjectMapperOperation🌀Advisories🌀GhsaId()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Integration', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Integration\\Permissions' => $this->getObjectMapperOperation🌀App()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookConfig' => $this->getObjectMapperOperation🌀App🌀Hook🌀Config()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\ScimError', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\ValidationError' => $this->getObjectMapperOperation🌀App🌀Hook🌀Deliveries()->hydrateObject($className, $payload), @@ -1063,7 +1063,7 @@ public function serializeObjectOfType(object $object, string $className): mixed '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Operations\\EnterpriseAdmin\\UpdateUsernameForUser\\Response\\ApplicationJson\\Accepted\\Application\\Json' => $this->getObjectMapperOperation🌀Admin🌀Users🌀Username()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Authorization', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Authorization\\App', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\ScopedInstallation', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\AppPermissions' => $this->getObjectMapperOperation🌀Admin🌀Users🌀Username🌀Authorizations()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\BasicError', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\ValidationErrorSimple' => $this->getObjectMapperOperation🌀Advisories()->serializeObject($object), - '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\GlobalAdvisory', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\GlobalAdvisory\\Cvss', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\CvssSeverities', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\CvssSeverities\\CvssVThree', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\CvssSeverities\\CvssVFour', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\GlobalAdvisory\\Epss' => $this->getObjectMapperOperation🌀Advisories🌀GhsaId()->serializeObject($object), + '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\GlobalAdvisory', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\GlobalAdvisory\\Cvss', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\CvssSeverities', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\CvssSeverities\\CvssVThree', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\CvssSeverities\\CvssVFour', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\SecurityAdvisoryEpss' => $this->getObjectMapperOperation🌀Advisories🌀GhsaId()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Integration', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Integration\\Permissions' => $this->getObjectMapperOperation🌀App()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookConfig' => $this->getObjectMapperOperation🌀App🌀Hook🌀Config()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\ScimError', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\ValidationError' => $this->getObjectMapperOperation🌀App🌀Hook🌀Deliveries()->serializeObject($object), diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Operator/Dependabot/ListAlertsForEnterprise.php b/clients/GitHubEnterprise-3.13/src/Internal/Operator/Dependabot/ListAlertsForEnterprise.php index 227fc3182be..d9101ec8994 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Operator/Dependabot/ListAlertsForEnterprise.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Operator/Dependabot/ListAlertsForEnterprise.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function call(string $enterprise, string $state, string $severity, string $ecosystem, string $package, string $scope, string $before, string $after, int $last, string $sort = 'created', string $direction = 'desc', int $first = 30, int $perPage = 30): iterable|WithoutBody { $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Dependabot\ListAlertsForEnterprise($this->responseSchemaValidator, $this->hydrator, $enterprise, $state, $severity, $ecosystem, $package, $scope, $before, $after, $last, $sort, $direction, $first, $perPage); diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Operator/Dependabot/ListAlertsForOrg.php b/clients/GitHubEnterprise-3.13/src/Internal/Operator/Dependabot/ListAlertsForOrg.php index a438ef1b926..d817e6253a6 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Operator/Dependabot/ListAlertsForOrg.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Operator/Dependabot/ListAlertsForOrg.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function call(string $org, string $state, string $severity, string $ecosystem, string $package, string $scope, string $before, string $after, int $last, string $sort = 'created', string $direction = 'desc', int $first = 30, int $perPage = 30): iterable|WithoutBody { $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Dependabot\ListAlertsForOrg($this->responseSchemaValidator, $this->hydrator, $org, $state, $severity, $ecosystem, $package, $scope, $before, $after, $last, $sort, $direction, $first, $perPage); diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Operator/Dependabot/ListAlertsForRepo.php b/clients/GitHubEnterprise-3.13/src/Internal/Operator/Dependabot/ListAlertsForRepo.php index 85c38eb773c..14b70abdba4 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Operator/Dependabot/ListAlertsForRepo.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Operator/Dependabot/ListAlertsForRepo.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function call(string $owner, string $repo, string $state, string $severity, string $ecosystem, string $package, string $manifest, string $scope, string $sort = 'created', string $direction = 'desc'): iterable|WithoutBody { $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Dependabot\ListAlertsForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $state, $severity, $ecosystem, $package, $manifest, $scope, $sort, $direction); diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Dependabot.php b/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Dependabot.php index 16eff393b11..aac9e03ade0 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Dependabot.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Dependabot.php @@ -62,7 +62,7 @@ public function getOrgSecret(array $params): OrganizationDependabotSecret return $operator->call($arguments['org'], $arguments['secret_name']); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForRepo(array $params): iterable|WithoutBody { $arguments = []; @@ -164,7 +164,7 @@ public function listRepoSecrets(array $params): Ok return $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForEnterprise(array $params): iterable|WithoutBody { $arguments = []; @@ -251,7 +251,7 @@ public function listAlertsForEnterprise(array $params): iterable|WithoutBody return $operator->call($arguments['enterprise'], $arguments['state'], $arguments['severity'], $arguments['ecosystem'], $arguments['package'], $arguments['scope'], $arguments['before'], $arguments['after'], $arguments['last'], $arguments['sort'], $arguments['direction'], $arguments['first'], $arguments['per_page']); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForOrg(array $params): iterable|WithoutBody { $arguments = []; diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Five.php b/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Five.php index 92e01c60555..71ce8678ba0 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Five.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Five.php @@ -50,7 +50,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|iterable|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|Observable|Observable|WithoutBody|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|WithoutBody|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): HookDelivery|ActionsEnterprisePermissions|Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok|iterable|WithoutBody|GistComment|GhesChecksSystemRequirements|GhesClusterStatus|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\GetManageConfigApplyStatus\Response\ApplicationJson\Ok|GhesLicenseInfo|GhesConfigNodes|GhesGetSettings|GhesReplicationStatus|BasicError|ThreadSubscription|ActionsOrganizationPermissions|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|OrganizationCustomRepositoryRole|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|ExternalGroup|OrgHook|OrgMembership|Migration|OrgPreReceiveHook|RepositoryRuleset|TeamFull|ProjectCard|CheckAutomatedSecurityFixes|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|Installation|Language|LicenseContent|Page|ContentFile|SimpleUser|Stargazer|RepositorySubscription|Topic|TeamDiscussion|TeamMembership|TeamProject|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|Package { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Six.php b/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Six.php index ca623c7b09a..eb0bdb15668 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Six.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Six.php @@ -69,7 +69,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|iterable|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): PreReceiveEnvironmentDownloadStatus|ActionsCacheUsageOrgEnterprise|ActionsCacheUsagePolicyEnterprise|Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsEnterprise|iterable|Runner|AdvancedSecurityActiveCommitters|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\GetManageConfigApplyEvents\Response\ApplicationJson\Ok|WithoutBody|GhesLicenseCheck|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|RunnerGroupsOrg|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|Package|CustomProperty|RuleSuite|ExternalGroups|ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|CommitComment|Commit|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|RepositoryPreReceiveHook|PullRequest|Release|RepositoryRuleset|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|ScimEnterpriseGroupList|ScimEnterpriseUserList|TeamRepository { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterprise-3.13/src/Operation/Dependabot.php b/clients/GitHubEnterprise-3.13/src/Operation/Dependabot.php index c8e99c7adc7..0c0b5e2f830 100644 --- a/clients/GitHubEnterprise-3.13/src/Operation/Dependabot.php +++ b/clients/GitHubEnterprise-3.13/src/Operation/Dependabot.php @@ -21,13 +21,13 @@ public function __construct(private Internal\Operators $operators) { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForEnterprise(string $enterprise, string $state, string $severity, string $ecosystem, string $package, string $scope, string $before, string $after, int $last, string $sort, string $direction, int $first, int $perPage): iterable|WithoutBody { return $this->operators->dependabot👷ListAlertsForEnterprise()->call($enterprise, $state, $severity, $ecosystem, $package, $scope, $before, $after, $last, $sort, $direction, $first, $perPage); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForOrg(string $org, string $state, string $severity, string $ecosystem, string $package, string $scope, string $before, string $after, int $last, string $sort, string $direction, int $first, int $perPage): iterable|WithoutBody { return $this->operators->dependabot👷ListAlertsForOrg()->call($org, $state, $severity, $ecosystem, $package, $scope, $before, $after, $last, $sort, $direction, $first, $perPage); @@ -87,7 +87,7 @@ public function removeSelectedRepoFromOrgSecret(string $org, string $secretName, return $this->operators->dependabot👷RemoveSelectedRepoFromOrgSecret()->call($org, $secretName, $repositoryId); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForRepo(string $owner, string $repo, string $state, string $severity, string $ecosystem, string $package, string $manifest, string $scope, string $sort, string $direction): iterable|WithoutBody { return $this->operators->dependabot👷ListAlertsForRepo()->call($owner, $repo, $state, $severity, $ecosystem, $package, $manifest, $scope, $sort, $direction); diff --git a/clients/GitHubEnterprise-3.13/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHubEnterprise-3.13/src/PHPStan/ClientCallReturnTypes.php index 95336a8fd4a..e42785fc5cb 100644 --- a/clients/GitHubEnterprise-3.13/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHubEnterprise-3.13/src/PHPStan/ClientCallReturnTypes.php @@ -604,7 +604,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /enterprises/{enterprise}/dependabot/alerts') { - return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve('Observable|WithoutBody'); } if ($call === 'GET /enterprises/{enterprise}/secret-scanning/alerts') { @@ -1200,7 +1200,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /orgs/{org}/dependabot/alerts') { - return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve('Observable|WithoutBody'); } if ($call === 'GET /orgs/{org}/dependabot/secrets') { @@ -2676,7 +2676,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /repos/{owner}/{repo}/dependabot/alerts') { - return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve('Observable|WithoutBody'); } if ($call === 'GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}') { diff --git a/clients/GitHubEnterprise-3.13/src/Schema/GlobalAdvisory.php b/clients/GitHubEnterprise-3.13/src/Schema/GlobalAdvisory.php index 7f35d7ca270..537fc3e2402 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/GlobalAdvisory.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/GlobalAdvisory.php @@ -365,6 +365,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "properties": { + "percentage": { + "maximum": 100, + "minimum": 0, + "type": "number" + }, + "percentile": { + "maximum": 100, + "minimum": 0, + "type": "number" + } + }, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https:\\/\\/www.first.org\\/epss).", + "readOnly": true + }, "cwes": { "type": [ "array", @@ -389,20 +409,6 @@ } } }, - "epss": { - "type": [ - "object", - "null" - ], - "properties": { - "percentage": { - "type": "number" - }, - "percentile": { - "type": "number" - } - } - }, "credits": { "type": [ "array", @@ -643,11 +649,11 @@ "score": 0.5 } }, - "cwes": null, "epss": { "percentage": 1, "percentile": 1 }, + "cwes": null, "credits": null }'; @@ -669,6 +675,7 @@ This field is only populated when the advisory is imported from the National Vulnerability Database. * withdrawnAt: The date and time of when the advisory was withdrawn, in ISO 8601 format. * vulnerabilities: The products and respective version ranges affected by the advisory. + * epss: The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss). * credits: In GitHub Enterprise Server, this field will always be empty because the user metadata of credited users will not be available. */ public function __construct(#[MapFrom('ghsa_id')] @@ -682,7 +689,7 @@ public function __construct(#[MapFrom('ghsa_id')] public string|null $githubReviewedAt, #[MapFrom('nvd_published_at')] public string|null $nvdPublishedAt, #[MapFrom('withdrawn_at')] public string|null $withdrawnAt, public array|null $vulnerabilities, public Schema\GlobalAdvisory\Cvss|null $cvss, #[MapFrom('cvss_severities')] - public Schema\CvssSeverities|null $cvssSeverities, public array|null $cwes, public Schema\GlobalAdvisory\Epss|null $epss, public array|null $credits,) + public Schema\CvssSeverities|null $cvssSeverities, public Schema\SecurityAdvisoryEpss|null $epss, public array|null $cwes, public array|null $credits,) { } } diff --git a/clients/GitHubEnterprise-3.13/src/Schema/GlobalAdvisory/Epss.php b/clients/GitHubEnterprise-3.13/src/Schema/SecurityAdvisoryEpss.php similarity index 51% rename from clients/GitHubEnterprise-3.13/src/Schema/GlobalAdvisory/Epss.php rename to clients/GitHubEnterprise-3.13/src/Schema/SecurityAdvisoryEpss.php index 46cd7a98d30..72e2707bbfe 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/GlobalAdvisory/Epss.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/SecurityAdvisoryEpss.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHubEnterprise\Schema\GlobalAdvisory; +namespace ApiClients\Client\GitHubEnterprise\Schema; -final readonly class Epss +final readonly class SecurityAdvisoryEpss { public const SCHEMA_JSON = '{ "type": [ @@ -13,15 +13,21 @@ ], "properties": { "percentage": { + "maximum": 100, + "minimum": 0, "type": "number" }, "percentile": { + "maximum": 100, + "minimum": 0, "type": "number" } - } + }, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https:\\/\\/www.first.org\\/epss).", + "readOnly": true }'; public const SCHEMA_TITLE = ''; - public const SCHEMA_DESCRIPTION = ''; + public const SCHEMA_DESCRIPTION = 'The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).'; public const SCHEMA_EXAMPLE_DATA = '{ "percentage": 1, "percentile": 1 diff --git a/clients/GitHubEnterprise-3.13/tests/Types/ClientCallReturnTypes.php b/clients/GitHubEnterprise-3.13/tests/Types/ClientCallReturnTypes.php index c20a472847a..e5157d7a68e 100644 --- a/clients/GitHubEnterprise-3.13/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHubEnterprise-3.13/tests/Types/ClientCallReturnTypes.php @@ -157,7 +157,7 @@ function authHeader(): string assertType('Observable', $client->call('LIST /enterprises/{enterprise}/code-scanning/alerts')); assertType('', $client->call('GET /enterprises/{enterprise}/code_security_and_analysis')); assertType('', $client->call('PATCH /enterprises/{enterprise}/code_security_and_analysis')); -assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /enterprises/{enterprise}/dependabot/alerts')); +assertType('Observable|WithoutBody', $client->call('GET /enterprises/{enterprise}/dependabot/alerts')); assertType('Observable', $client->call('GET /enterprises/{enterprise}/secret-scanning/alerts')); assertType('', $client->call('GET /enterprises/{enterprise}/settings/billing/advanced-security')); assertType('', $client->call('POST /enterprises/{enterprise}/{security_product}/{enablement}')); @@ -306,7 +306,7 @@ function authHeader(): string assertType('', $client->call('GET /orgs/{org}/custom-repository-roles/{role_id}')); assertType('', $client->call('DELETE /orgs/{org}/custom-repository-roles/{role_id}')); assertType('', $client->call('PATCH /orgs/{org}/custom-repository-roles/{role_id}')); -assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /orgs/{org}/dependabot/alerts')); +assertType('Observable|WithoutBody', $client->call('GET /orgs/{org}/dependabot/alerts')); assertType('', $client->call('GET /orgs/{org}/dependabot/secrets')); assertType('', $client->call('GET /orgs/{org}/dependabot/secrets/public-key')); assertType('', $client->call('GET /orgs/{org}/dependabot/secrets/{secret_name}')); @@ -675,7 +675,7 @@ function authHeader(): string assertType('', $client->call('DELETE /repos/{owner}/{repo}/contents/{path}')); assertType('Observable|WithoutBody', $client->call('GET /repos/{owner}/{repo}/contributors')); assertType('Observable|WithoutBody', $client->call('LIST /repos/{owner}/{repo}/contributors')); -assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /repos/{owner}/{repo}/dependabot/alerts')); +assertType('Observable|WithoutBody', $client->call('GET /repos/{owner}/{repo}/dependabot/alerts')); assertType('', $client->call('GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}')); assertType('', $client->call('PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}')); assertType('', $client->call('GET /repos/{owner}/{repo}/dependabot/secrets')); diff --git a/etc/specs/GitHubEnterprise-3.13/current.spec.yaml b/etc/specs/GitHubEnterprise-3.13/current.spec.yaml index 1a449955b84..4e5c2efabb3 100644 --- a/etc/specs/GitHubEnterprise-3.13/current.spec.yaml +++ b/etc/specs/GitHubEnterprise-3.13/current.spec.yaml @@ -66441,6 +66441,22 @@ components: required: - vector_string - score + security-advisory-epss: + type: + - object + - 'null' + readOnly: true + description: The EPSS scores as calculated by the [Exploit Prediction Scoring + System](https://www.first.org/epss). + properties: + percentage: + type: number + minimum: 0 + maximum: 100 + percentile: + type: number + minimum: 0 + maximum: 100 security-advisory-credit-types: type: string description: The type of credit the user is receiving. @@ -66613,6 +66629,8 @@ components: - score cvss_severities: "$ref": "#/components/schemas/cvss-severities" + epss: + "$ref": "#/components/schemas/security-advisory-epss" cwes: type: - array @@ -66630,15 +66648,6 @@ components: required: - cwe_id - name - epss: - type: - - object - - 'null' - properties: - percentage: - type: number - percentile: - type: number credits: type: - array @@ -204908,7 +204917,6 @@ components: - url: https://bugzilla.redhat.com/show_bug.cgi?id=1916813 published_at: '2021-06-01T17:38:00Z' updated_at: '2021-08-12T23:06:00Z' - withdrawn_at: security_vulnerability: package: ecosystem: pip @@ -204921,11 +204929,6 @@ components: html_url: https://github.com/octocat/hello-world/security/dependabot/1 created_at: '2022-06-14T15:21:52Z' updated_at: '2022-06-14T15:21:52Z' - dismissed_at: - dismissed_by: - dismissed_reason: - dismissed_comment: - fixed_at: dependabot-alert-dismissed: value: number: 2