Skip to content

Commit

Permalink
Merge pull request #421 from camptocamp/fix
Browse files Browse the repository at this point in the history
Fix
  • Loading branch information
sbrunner authored Jul 5, 2024
2 parents 12910b4 + 40bfabc commit 2bca7a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion github_app_geo_project/views/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def webhook(request: pyramid.request.Request) -> dict[str, None]:
raise pyramid.httpexceptions.HTTPBadRequest("No signature in the request")

our_signature = hmac.new(
key=os.environ["GITHUB_SECRET"].encode("utf-8"),
key=github_secret.encode("utf-8"),
msg=request.body,
digestmod=hashlib.sha256,
).hexdigest()
Expand Down

0 comments on commit 2bca7a9

Please sign in to comment.