Skip to content

Commit

Permalink
Audit: Add pip freeze message
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jun 26, 2024
1 parent f749623 commit 9a1d203
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions github_app_geo_project/module/audit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ async def snyk(
_LOGGER.debug("Updated path: %s", env["PATH"])

await _install_requirements_dependencies(config, local_config, result, env)

proc = subprocess.run( # pylint: disable=subprocess-run-check
["pip", "freeze"], timeout=30, capture_output=True, encoding="utf-8"
) # nosec
message = module_utils.ansi_proc_message(proc)
message.title = "Pip freeze"
_LOGGER.info(message)

await _install_pipenv_dependencies(config, local_config, result, env)
await _install_poetry_dependencies(config, local_config, result, env)

Expand Down

0 comments on commit 9a1d203

Please sign in to comment.