diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index 576c8995cc2..a856d7095f1 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "10709c2cd95791d7429380234be06a83", + "specHash": "ffa2a2629ce7e409178910932d1b8231", "generatedFiles": { "files": [ { @@ -256,7 +256,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ApiOverview.php", - "hash": "7ad5d2dd671b62f325c28959a796495f" + "hash": "e8ee700a823b492eedf92e7510837906" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecurityAndAnalysis.php", @@ -25344,7 +25344,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Meta.php", - "hash": "7b714fd2c0e6d0e01dadab4a498abfe8" + "hash": "dd4318bfa1103423cde64c2e63aac119" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Networks\/Owner\/Repo\/Events.php", @@ -27460,15 +27460,15 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RuleSuites.php", - "hash": "9cfc7c9d99bdf4d33c336da79fd87eae" + "hash": "f45ebc091b1d2551d6907116aee742f2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RuleSuite.php", - "hash": "79d965e19a6083c8519f90b993b10ee6" + "hash": "ac2c479148163e95e59a63c6c15d20d8" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RuleSuite\/RuleEvaluations.php", - "hash": "0265a4794ad8fe49aad484e3fdb73b44" + "hash": "8d56c15b6f5658d04342c8e1a6b1dacc" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RuleSuite\/RuleEvaluations\/RuleSource.php", diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Meta.php b/clients/GitHub/src/Internal/Hydrator/Operation/Meta.php index 040830684a0..2119408e976 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Meta.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Meta.php @@ -208,6 +208,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ApiO after_actionsMacos: + $value = $payload['codespaces'] ?? null; + + if ($value === null) { + $properties['codespaces'] = null; + goto after_codespaces; + } + + $properties['codespaces'] = $value; + + after_codespaces: + $value = $payload['dependabot'] ?? null; if ($value === null) { @@ -741,6 +752,21 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $actionsMacos = $actionsMacosSerializer0->serialize($actionsMacos, $this); after_actionsMacos: $result['actions_macos'] = $actionsMacos; + $codespaces = $object->codespaces; + + if ($codespaces === null) { + goto after_codespaces; + } + + static $codespacesSerializer0; + + if ($codespacesSerializer0 === null) { + $codespacesSerializer0 = new SerializeArrayItems(...[]); + } + + $codespaces = $codespacesSerializer0->serialize($codespaces, $this); + after_codespaces: $result['codespaces'] = $codespaces; + $dependabot = $object->dependabot; if ($dependabot === null) { diff --git a/clients/GitHub/src/Schema/ApiOverview.php b/clients/GitHub/src/Schema/ApiOverview.php index 525d7d4e244..43edd125182 100644 --- a/clients/GitHub/src/Schema/ApiOverview.php +++ b/clients/GitHub/src/Schema/ApiOverview.php @@ -138,6 +138,15 @@ "192.0.2.1" ] }, + "codespaces": { + "type": "array", + "items": { + "type": "string" + }, + "examples": [ + "192.0.2.1" + ] + }, "dependabot": { "type": "array", "items": { @@ -283,6 +292,10 @@ "192.0.2.1", "192.0.2.1" ], + "codespaces": [ + "192.0.2.1", + "192.0.2.1" + ], "dependabot": [ "192.0.2.1", "192.0.2.1" @@ -327,7 +340,7 @@ public function __construct(#[MapFrom('verifiable_password_authentication')] public Schema\ApiOverview\SshKeyFingerprints|null $sshKeyFingerprints, #[MapFrom('ssh_keys')] public array|null $sshKeys, public array|null $hooks, #[MapFrom('github_enterprise_importer')] 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')] - public array|null $actionsMacos, public array|null $dependabot, public array|null $copilot, public Schema\ApiOverview\Domains|null $domains,) + public array|null $actionsMacos, public array|null $codespaces, public array|null $dependabot, public array|null $copilot, public Schema\ApiOverview\Domains|null $domains,) { } } diff --git a/clients/GitHub/src/Schema/RuleSuite.php b/clients/GitHub/src/Schema/RuleSuite.php index cc956097719..104a2406776 100644 --- a/clients/GitHub/src/Schema/RuleSuite.php +++ b/clients/GitHub/src/Schema/RuleSuite.php @@ -69,10 +69,15 @@ "evaluation_result": { "enum": [ "pass", - "fail" + "fail", + "bypass", + null ], - "type": "string", - "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`." + "type": [ + "string", + "null" + ], + "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." }, "rule_evaluations": { "type": "array", @@ -124,8 +129,11 @@ "description": "The type of rule." }, "details": { - "type": "string", - "description": "Any associated details with the rule evaluation." + "type": [ + "string", + "null" + ], + "description": "The detailed failure message for the rule. Null if the rule passed." } } }, @@ -184,7 +192,7 @@ * repositoryId: The ID of the repository associated with the rule evaluation. * repositoryName: The name of the repository without the `.git` extension. * result: The result of the rule evaluations for rules with the `active` enforcement status. - * 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`. + * 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. * ruleEvaluations: Details on the evaluated rules. */ public function __construct(public int|null $id, #[MapFrom('actor_id')] diff --git a/clients/GitHub/src/Schema/RuleSuite/RuleEvaluations.php b/clients/GitHub/src/Schema/RuleSuite/RuleEvaluations.php index f30d31f70ad..a83bd4c7931 100644 --- a/clients/GitHub/src/Schema/RuleSuite/RuleEvaluations.php +++ b/clients/GitHub/src/Schema/RuleSuite/RuleEvaluations.php @@ -57,8 +57,11 @@ "description": "The type of rule." }, "details": { - "type": "string", - "description": "Any associated details with the rule evaluation." + "type": [ + "string", + "null" + ], + "description": "The detailed failure message for the rule. Null if the rule passed." } } }'; @@ -80,7 +83,7 @@ * enforcement: The enforcement level of this rule source. * result: The result of the evaluation of the individual rule. * ruleType: The type of rule. - * details: Any associated details with the rule evaluation. + * details: The detailed failure message for the rule. Null if the rule passed. */ public function __construct(#[MapFrom('rule_source')] public Schema\RuleSuite\RuleEvaluations\RuleSource|null $ruleSource, public string|null $enforcement, public string|null $result, #[MapFrom('rule_type')] diff --git a/clients/GitHub/src/Schema/RuleSuites.php b/clients/GitHub/src/Schema/RuleSuites.php index 00024a6230b..c5322fe9181 100644 --- a/clients/GitHub/src/Schema/RuleSuites.php +++ b/clients/GitHub/src/Schema/RuleSuites.php @@ -62,7 +62,8 @@ "evaluation_result": { "enum": [ "pass", - "fail" + "fail", + "bypass" ], "type": "string", "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`." diff --git a/etc/specs/GitHub/current.spec.yaml b/etc/specs/GitHub/current.spec.yaml index 4b08cef4d68..e38760dab32 100644 --- a/etc/specs/GitHub/current.spec.yaml +++ b/etc/specs/GitHub/current.spec.yaml @@ -19498,9 +19498,9 @@ paths: description: |- Store an artifact attestation and associate it with a repository. - The authenticated user must have write permission to the repository and, if using a fine-grained access token the `attestations:write` permission is required. + The authenticated user must have write permission to the repository and, if using a fine-grained access token, the `attestations:write` permission is required. - 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/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds). + 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/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds). tags: - repos operationId: repos/create-attestation @@ -70022,6 +70022,12 @@ components: type: string examples: - 192.0.2.1 + codespaces: + type: array + items: + type: string + examples: + - 192.0.2.1 dependabot: type: array items: @@ -74899,6 +74905,7 @@ components: enum: - pass - fail + - bypass 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`. @@ -74949,13 +74956,18 @@ components: description: The result of the rule evaluations for rules with the `active` enforcement status. evaluation_result: - type: string + type: + - string + - 'null' enum: - pass - fail + - bypass + - 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`. + pass or fail if all rules in the rule suite were `active`. Null if no + rules with `evaluate` enforcement status were run. rule_evaluations: type: array description: Details on the evaluated rules. @@ -74995,8 +75007,11 @@ components: type: string description: The type of rule. details: - type: string - description: Any associated details with the rule evaluation. + type: + - string + - 'null' + description: The detailed failure message for the rule. Null if the + rule passed. repository-advisory-vulnerability: description: A product affected by the vulnerability detailed in a repository security advisory.