Skip to content

Commit ddd07e9

Browse files
authored
🐛 Fix: DependabotAlert dependency relationship missing inconclusive (#287)
1 parent f981011 commit ddd07e9

File tree

10 files changed

+50
-28
lines changed

10 files changed

+50
-28
lines changed

githubkit/versions/ghec_v2022_11_28/models/group_0412.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ class DependabotAlertPropDependency(GitHubModel):
3636
scope: Missing[Union[None, Literal["development", "runtime"]]] = Field(
3737
default=UNSET, description="The execution scope of the vulnerable dependency."
3838
)
39-
relationship: Missing[Union[None, Literal["unknown", "direct", "transitive"]]] = (
40-
Field(
41-
default=UNSET,
42-
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',
43-
)
39+
relationship: Missing[
40+
Union[None, Literal["unknown", "direct", "transitive", "inconclusive"]]
41+
] = Field(
42+
default=UNSET,
43+
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',
4444
)
4545

4646

githubkit/versions/ghec_v2022_11_28/types/group_0412.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ class DependabotAlertPropDependencyType(TypedDict):
2727
package: NotRequired[DependabotAlertPackageType]
2828
manifest_path: NotRequired[str]
2929
scope: NotRequired[Union[None, Literal["development", "runtime"]]]
30-
relationship: NotRequired[Union[None, Literal["unknown", "direct", "transitive"]]]
30+
relationship: NotRequired[
31+
Union[None, Literal["unknown", "direct", "transitive", "inconclusive"]]
32+
]
3133

3234

3335
class DependabotAlertPropDependencyTypeForResponse(TypedDict):
@@ -39,7 +41,9 @@ class DependabotAlertPropDependencyTypeForResponse(TypedDict):
3941
package: NotRequired[DependabotAlertPackageTypeForResponse]
4042
manifest_path: NotRequired[str]
4143
scope: NotRequired[Union[None, Literal["development", "runtime"]]]
42-
relationship: NotRequired[Union[None, Literal["unknown", "direct", "transitive"]]]
44+
relationship: NotRequired[
45+
Union[None, Literal["unknown", "direct", "transitive", "inconclusive"]]
46+
]
4347

4448

4549
__all__ = (

githubkit/versions/ghec_v2026_03_10/models/group_0410.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ class DependabotAlertPropDependency(GitHubModel):
3636
scope: Missing[Union[None, Literal["development", "runtime"]]] = Field(
3737
default=UNSET, description="The execution scope of the vulnerable dependency."
3838
)
39-
relationship: Missing[Union[None, Literal["unknown", "direct", "transitive"]]] = (
40-
Field(
41-
default=UNSET,
42-
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',
43-
)
39+
relationship: Missing[
40+
Union[None, Literal["unknown", "direct", "transitive", "inconclusive"]]
41+
] = Field(
42+
default=UNSET,
43+
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',
4444
)
4545

4646

githubkit/versions/ghec_v2026_03_10/types/group_0410.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ class DependabotAlertPropDependencyType(TypedDict):
2727
package: NotRequired[DependabotAlertPackageType]
2828
manifest_path: NotRequired[str]
2929
scope: NotRequired[Union[None, Literal["development", "runtime"]]]
30-
relationship: NotRequired[Union[None, Literal["unknown", "direct", "transitive"]]]
30+
relationship: NotRequired[
31+
Union[None, Literal["unknown", "direct", "transitive", "inconclusive"]]
32+
]
3133

3234

3335
class DependabotAlertPropDependencyTypeForResponse(TypedDict):
@@ -39,7 +41,9 @@ class DependabotAlertPropDependencyTypeForResponse(TypedDict):
3941
package: NotRequired[DependabotAlertPackageTypeForResponse]
4042
manifest_path: NotRequired[str]
4143
scope: NotRequired[Union[None, Literal["development", "runtime"]]]
42-
relationship: NotRequired[Union[None, Literal["unknown", "direct", "transitive"]]]
44+
relationship: NotRequired[
45+
Union[None, Literal["unknown", "direct", "transitive", "inconclusive"]]
46+
]
4347

4448

4549
__all__ = (

githubkit/versions/v2022_11_28/models/group_0339.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ class DependabotAlertPropDependency(GitHubModel):
3636
scope: Missing[Union[None, Literal["development", "runtime"]]] = Field(
3737
default=UNSET, description="The execution scope of the vulnerable dependency."
3838
)
39-
relationship: Missing[Union[None, Literal["unknown", "direct", "transitive"]]] = (
40-
Field(
41-
default=UNSET,
42-
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',
43-
)
39+
relationship: Missing[
40+
Union[None, Literal["unknown", "direct", "transitive", "inconclusive"]]
41+
] = Field(
42+
default=UNSET,
43+
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',
4444
)
4545

4646

githubkit/versions/v2022_11_28/types/group_0339.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ class DependabotAlertPropDependencyType(TypedDict):
2727
package: NotRequired[DependabotAlertPackageType]
2828
manifest_path: NotRequired[str]
2929
scope: NotRequired[Union[None, Literal["development", "runtime"]]]
30-
relationship: NotRequired[Union[None, Literal["unknown", "direct", "transitive"]]]
30+
relationship: NotRequired[
31+
Union[None, Literal["unknown", "direct", "transitive", "inconclusive"]]
32+
]
3133

3234

3335
class DependabotAlertPropDependencyTypeForResponse(TypedDict):
@@ -39,7 +41,9 @@ class DependabotAlertPropDependencyTypeForResponse(TypedDict):
3941
package: NotRequired[DependabotAlertPackageTypeForResponse]
4042
manifest_path: NotRequired[str]
4143
scope: NotRequired[Union[None, Literal["development", "runtime"]]]
42-
relationship: NotRequired[Union[None, Literal["unknown", "direct", "transitive"]]]
44+
relationship: NotRequired[
45+
Union[None, Literal["unknown", "direct", "transitive", "inconclusive"]]
46+
]
4347

4448

4549
__all__ = (

githubkit/versions/v2026_03_10/models/group_0337.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ class DependabotAlertPropDependency(GitHubModel):
3636
scope: Missing[Union[None, Literal["development", "runtime"]]] = Field(
3737
default=UNSET, description="The execution scope of the vulnerable dependency."
3838
)
39-
relationship: Missing[Union[None, Literal["unknown", "direct", "transitive"]]] = (
40-
Field(
41-
default=UNSET,
42-
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',
43-
)
39+
relationship: Missing[
40+
Union[None, Literal["unknown", "direct", "transitive", "inconclusive"]]
41+
] = Field(
42+
default=UNSET,
43+
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',
4444
)
4545

4646

githubkit/versions/v2026_03_10/types/group_0337.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ class DependabotAlertPropDependencyType(TypedDict):
2727
package: NotRequired[DependabotAlertPackageType]
2828
manifest_path: NotRequired[str]
2929
scope: NotRequired[Union[None, Literal["development", "runtime"]]]
30-
relationship: NotRequired[Union[None, Literal["unknown", "direct", "transitive"]]]
30+
relationship: NotRequired[
31+
Union[None, Literal["unknown", "direct", "transitive", "inconclusive"]]
32+
]
3133

3234

3335
class DependabotAlertPropDependencyTypeForResponse(TypedDict):
@@ -39,7 +41,9 @@ class DependabotAlertPropDependencyTypeForResponse(TypedDict):
3941
package: NotRequired[DependabotAlertPackageTypeForResponse]
4042
manifest_path: NotRequired[str]
4143
scope: NotRequired[Union[None, Literal["development", "runtime"]]]
42-
relationship: NotRequired[Union[None, Literal["unknown", "direct", "transitive"]]]
44+
relationship: NotRequired[
45+
Union[None, Literal["unknown", "direct", "transitive", "inconclusive"]]
46+
]
4347

4448

4549
__all__ = (

githubkit/versions/versions.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ source = "https://raw.githubusercontent.com/github/rest-api-description/d5aff63f
166166
"/webhooks/repository-dispatch-sample.collected/post" = {operationId = "repository-dispatch"}
167167
"/components/schemas/webhooks_answer/properties/parent_id" = {type = ["integer", "null"]}
168168
"/components/schemas/dependabot-alert-with-repository/properties/dependency/properties/relationship/enum" = {"<add>" = ["inconclusive"]}
169+
"/components/schemas/dependabot-alert/properties/dependency/properties/relationship/enum" = {"<add>" = ["inconclusive"]}
169170
"/components/schemas/code-scanning-alert-classification/enum" = {"<add>" = ["documentation"]}
170171

171172
[[overrides]]

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,11 @@ source = "descriptions-next/ghec/ghec.2026-03-10.json"
619619
"/components/schemas/dependabot-alert-with-repository/properties/dependency/properties/relationship/enum" = { "<add>" = [
620620
"inconclusive",
621621
] }
622+
# https://github.com/yanyongyu/githubkit/issues/284
623+
# https://github.com/github/rest-api-description/issues/6108
624+
"/components/schemas/dependabot-alert/properties/dependency/properties/relationship/enum" = { "<add>" = [
625+
"inconclusive",
626+
] }
622627
# https://github.com/github/rest-api-description/issues/4728
623628
"/components/schemas/code-scanning-alert-classification/enum" = { "<add>" = [
624629
"documentation",

0 commit comments

Comments
 (0)