@@ -93,6 +93,12 @@ class GHRepositoryProperties(GHNodeProperties):
9393 "description" : "Whether GitHub Actions is enabled for this repository."
9494 },
9595 )
96+ self_hosted_runners_enabled : bool | None = field (
97+ default = None ,
98+ metadata = {
99+ "description" : "Whether the repository may use self-hosted runners."
100+ },
101+ )
96102 secret_scanning : str | None = field (
97103 default = None ,
98104 metadata = {
@@ -105,6 +111,7 @@ class GHRepositoryProperties(GHNodeProperties):
105111 query_roles : str = ""
106112 query_teams : str = ""
107113 query_workflows : str = ""
114+ query_runners : str = ""
108115 query_environments : str = ""
109116 query_secrets : str = ""
110117 query_variables : str = ""
@@ -206,6 +213,8 @@ class Repository(BaseAsset):
206213 forks : int | None = None
207214 open_issues : int | None = None
208215 watchers : int | None = None
216+ actions_enabled : bool | None = None
217+ self_hosted_runners_enabled : bool | None = None
209218
210219 @property
211220 def owner_id (self ) -> str :
@@ -245,14 +254,16 @@ def as_node(self) -> GHNode:
245254 owner_id = self .owner_id or "" ,
246255 environment_name = self ._lookup .org_login (),
247256 environmentid = self ._lookup .org_id (),
248- # actions_enabled=self.actions_enabled,
257+ actions_enabled = self .actions_enabled ,
258+ self_hosted_runners_enabled = self .self_hosted_runners_enabled ,
249259 # secret_scanning=self.secret_scanning,
250260 query_branches = f"MATCH p=(:GH_Repository {{node_id: '{ rid } '}})-[:GH_HasBranch]->(:GH_Branch) RETURN p" ,
251261 query_protected_branches = f"MATCH p=(:GH_Repository {{node_id: '{ rid } '}})-[:GH_HasBranch]->(:GH_Branch)<-[:GH_ProtectedBy]-(:GH_BranchProtectionRule) RETURN p" ,
252262 query_branch_protection_rules = f"MATCH p=(:GH_Repository {{node_id: '{ rid } '}})-[:GH_Contains]->(:GH_BranchProtectionRule) RETURN p" ,
253263 query_roles = f"MATCH p=(:GH_RepoRole)-[*1..]->(:GH_Repository {{node_id: '{ rid } '}}) RETURN p" ,
254264 query_teams = f"MATCH p=(:GH_Team)-[:GH_MemberOf|GH_HasRole*1..]->(:GH_RepoRole)-[]->(:GH_Repository {{node_id: '{ rid } '}}) RETURN p" ,
255265 query_workflows = f"MATCH p=(:GH_Repository {{node_id:'{ rid } '}})-[:GH_HasWorkflow]->(w:GH_Workflow) RETURN p" ,
266+ query_runners = f"MATCH p=(:GH_Repository {{node_id:'{ rid } '}})-[:GH_CanUseRunner]->(:GH_Runner) RETURN p" ,
256267 query_environments = f"MATCH p=(:GH_Repository {{node_id: '{ rid } '}})-[:GH_HasEnvironment]->(:GH_Environment) RETURN p" ,
257268 query_secrets = f"MATCH p=(:GH_Repository {{node_id:'{ rid } '}})-[:GH_HasSecret]->(:GH_Secret) RETURN p" ,
258269 query_variables = f"MATCH p=(:GH_Repository {{node_id:'{ rid } '}})-[:GH_HasVariable]->(:GH_Variable) RETURN p" ,
0 commit comments