From 035101d3552f63c2fd485fb9223c3feb7fd450a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Thu, 4 Jul 2024 10:07:21 +0200 Subject: [PATCH] Audit: Fix UnboundLocalError --- github_app_geo_project/module/audit/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github_app_geo_project/module/audit/__init__.py b/github_app_geo_project/module/audit/__init__.py index b3efc35d5fa..5212db42e7f 100644 --- a/github_app_geo_project/module/audit/__init__.py +++ b/github_app_geo_project/module/audit/__init__.py @@ -152,6 +152,7 @@ async def _process_snyk_dpkg( with open(".github/ghci.yaml", encoding="utf-8") as file: local_config = yaml.load(file, Loader=yaml.SafeLoader).get("audit", {}) + logs_url = urllib.parse.urljoin(context.service_url, f"logs/{context.job_id}") if context.module_event_data.type == "snyk": python_version = "" if os.path.exists(".tool-versions"): @@ -166,7 +167,6 @@ async def _process_snyk_dpkg( else: env = os.environ.copy() - logs_url = urllib.parse.urljoin(context.service_url, f"logs/{context.job_id}") result, body, short_message, new_success = await audit_utils.snyk( branch, context.module_config.get("snyk", {}),