Skip to content

Commit

Permalink
Merge pull request #495 from camptocamp/fix
Browse files Browse the repository at this point in the history
Audit: Fix, see commit
  • Loading branch information
sbrunner authored Aug 16, 2024
2 parents aaf7a82 + f75b114 commit c218681
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions github_app_geo_project/module/audit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,17 @@ async def _select_java_version(
if minor_gradle_version not in java_path_for_gradle:
_LOGGER.warning(
"Gradle version %s is not in the configuration: %s.",
gradle_version,
minor_gradle_version,
", ".join(java_path_for_gradle.keys()),
)
await module_utils.run_timeout(
["gradle", "--version"],
env,
10,
"Gradle version",
"Error on getting Gradle version",
"Timeout on getting Gradle version",
)
return

env["PATH"] = f'{java_path_for_gradle[minor_gradle_version]}:{env["PATH"]}'
Expand Down Expand Up @@ -533,7 +541,7 @@ async def _snyk_fix(
)
)
message.title = f"Unable to fix {len(fixable_vulnerabilities_summary)} vulnerabilities"
_LOGGER.error(message)
_LOGGER.warning(message)

return snyk_fix_success, snyk_fix_message

Expand Down

0 comments on commit c218681

Please sign in to comment.