@@ -175,11 +175,13 @@ def run_check(self, ctx: AnalyzeContext) -> CheckResultData:
175175 trigger_link = ci_service .api_client .get_file_link (
176176 ctx .component .repository .full_name ,
177177 ctx .component .repository .commit_sha ,
178- file_path = ci_service .api_client .get_relative_path_of_workflow (
179- os .path .basename (caller_path )
180- )
181- if caller_path
182- else "" ,
178+ file_path = (
179+ ci_service .api_client .get_relative_path_of_workflow (
180+ os .path .basename (caller_path )
181+ )
182+ if caller_path
183+ else ""
184+ ),
183185 )
184186 store_inferred_provenance (
185187 ctx = ctx ,
@@ -228,28 +230,34 @@ def run_check(self, ctx: AnalyzeContext) -> CheckResultData:
228230 ci_info = ci_info ,
229231 ci_service = ci_service ,
230232 trigger_link = trigger_link ,
231- job_id = build_command ["step_node" ].caller .name
232- if isinstance (build_command ["step_node" ].caller , GitHubJobNode )
233- else None ,
233+ job_id = (
234+ build_command ["step_node" ].caller .name
235+ if isinstance (build_command ["step_node" ].caller , GitHubJobNode )
236+ else None
237+ ),
234238 step_id = build_command ["step_node" ].node_id ,
235- step_name = build_command ["step_node" ].name
236- if isinstance (build_command ["step_node" ], BashNode )
237- else None ,
239+ step_name = (
240+ build_command ["step_node" ].name
241+ if isinstance (build_command ["step_node" ], BashNode )
242+ else None
243+ ),
238244 )
239245 result_tables .append (
240246 BuildAsCodeFacts (
241247 build_tool_name = tool .name ,
242248 ci_service_name = ci_service .name ,
243249 build_trigger = trigger_link ,
244250 language = build_command ["language" ],
245- language_distributions = tool .serialize_to_json (
246- build_command ["language_distributions" ]
247- )
248- if build_command ["language_distributions" ]
249- else None ,
250- language_versions = tool .serialize_to_json (build_command ["language_versions" ])
251- if build_command ["language_versions" ]
252- else None ,
251+ language_distributions = (
252+ tool .serialize_to_json (build_command ["language_distributions" ])
253+ if build_command ["language_distributions" ]
254+ else None
255+ ),
256+ language_versions = (
257+ tool .serialize_to_json (build_command ["language_versions" ])
258+ if build_command ["language_versions" ]
259+ else None
260+ ),
253261 language_url = build_command ["language_url" ],
254262 deploy_command = tool .serialize_to_json (build_command ["command" ]),
255263 confidence = confidence ,
0 commit comments