Skip to content

Commit

Permalink
Audit: Fix UnboundLocalError
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jul 4, 2024
1 parent 203327c commit 035101d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github_app_geo_project/module/audit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand All @@ -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", {}),
Expand Down

0 comments on commit 035101d

Please sign in to comment.