feat: run probabilistic audit on any authenticated webhook #11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/audit-on-any-hook"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Move the MaybeAudit call before the event type check so that any
webhook with a valid signature triggers the reconciliation roll,
not just repository events. This increases audit coverage when
additional hook types (push, issue, etc.) are enabled in Forgejo.
Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com
Automated review by pr-reviewer v0.15.0 | Safety Check | anthropic | tracking id
r-c4b8bc-10930bThis is an AI-generated review and may contain mistakes.
Status: ✅ Completed
✅ Verdict: LGTM — The change safely moves the audit trigger to run on all authenticated webhooks instead of only repository events, which aligns with the stated goal.
Complexity: moderate
Safety Check Review
This change moves the
MaybeAuditcall from after the repository event type check to before it, so that probabilistic reconciliation occurs on any authenticated webhook rather than only repository events.Key observations:
No security vulnerabilities, obvious bugs, or breaking changes identified.