Skip to content

Commit

Permalink
Audit: Add some debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jun 18, 2024
1 parent 1a3befb commit e2fdd0d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion github_app_geo_project/module/audit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ async def _snyk_fix(
"<br>\n".join(
[
*fixable_vulnerabilities_summary.values(),
f"{os.path.basename(os.getcwd())}:{branch}",
f"Project: {os.path.basename(os.getcwd())}:{branch}",
f"See logs: {logs_url}",
]
)
Expand Down Expand Up @@ -443,6 +443,15 @@ async def _npm_audit_fix(
)
if message is not None:
result.append(message)
if not success:
await module_utils.run_timeout(
["poetry", "--version"],
os.environ.copy(),
10,
"Poetry version",
"Error while getting the Poetry version",
"Timeout while getting the Poetry version",
)
_LOGGER.debug("Fixing version in %s", package_lock_file_name)
# Remove the add '~' in the version in the package.json
with open(os.path.join(directory, "package.json"), encoding="utf-8") as package_file:
Expand Down

0 comments on commit e2fdd0d

Please sign in to comment.