fix: suppress blocked GitHub webhook warnings (#1411)

Demote expected GitHub allowlist rejections to debug so external app installations do not flood warning logs.
This commit is contained in:
Johannes du Plessis 2026-06-04 13:23:29 -07:00 • committed by GitHub
parent 58e0f84470
commit 58f7b716da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2963,7 +2963,7 @@ async def github_webhook(request: Request, background_tasks: BackgroundTasks) ->
return {"status": "accepted", "message": "Processing GitHub push for reviewer watch"}
if not _is_repo_allowed(webhook_repo_config):
logger.warning(
logger.debug(
"Rejecting GitHub webhook: repo '%s/%s' not in allowlist",
webhook_repo_config.get("owner"),
webhook_repo_config.get("name"),