Skip to content

Commit

Permalink
[GitHub] Update to 1.1.4-ffa2a2629ce7e409178910932d1b8231 from 1.1.4-…
Browse files Browse the repository at this point in the history
…10709c2cd95791d7429380234be06a83

Detected Schema changes:
  • Loading branch information
WyriHaximus authored and github-actions[bot] committed Sep 17, 2024
1 parent 5b36293 commit 5395a3e
Show file tree
Hide file tree
Showing 7 changed files with 89 additions and 23 deletions.
12 changes: 6 additions & 6 deletions clients/GitHub/etc/openapi-client-generator.state
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"specHash": "10709c2cd95791d7429380234be06a83",
"specHash": "ffa2a2629ce7e409178910932d1b8231",
"generatedFiles": {
"files": [
{
Expand Down Expand Up @@ -256,7 +256,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ApiOverview.php",
"hash": "7ad5d2dd671b62f325c28959a796495f"
"hash": "e8ee700a823b492eedf92e7510837906"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecurityAndAnalysis.php",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
26 changes: 26 additions & 0 deletions clients/GitHub/src/Internal/Hydrator/Operation/Meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down
15 changes: 14 additions & 1 deletion clients/GitHub/src/Schema/ApiOverview.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,15 @@
"192.0.2.1"
]
},
"codespaces": {
"type": "array",
"items": {
"type": "string"
},
"examples": [
"192.0.2.1"
]
},
"dependabot": {
"type": "array",
"items": {
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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,)
{
}
}
20 changes: 14 additions & 6 deletions clients/GitHub/src/Schema/RuleSuite.php
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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."
}
}
},
Expand Down Expand Up @@ -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')]
Expand Down
9 changes: 6 additions & 3 deletions clients/GitHub/src/Schema/RuleSuite/RuleEvaluations.php
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
}
}';
Expand All @@ -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')]
Expand Down
3 changes: 2 additions & 1 deletion clients/GitHub/src/Schema/RuleSuites.php
Original file line number Diff line number Diff line change
Expand Up @@ -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`."
Expand Down
27 changes: 21 additions & 6 deletions etc/specs/GitHub/current.spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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`.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 5395a3e

Please sign in to comment.