Files
gitea/tests
e5b1ac76f9 fix(audit): record missing repository and content events (#40322)
Several API and background paths change repositories without writing the
audit event the web UI writes for the same change. This records the
existing actions on those paths:

- Webhook add/update/remove via the API (repository, organization, user
and system hooks)
- Branch and tag protection add/update/remove via the API
- Deploy keys and deploy tokens via the API, and deploy tokens generated
in the web UI
- Push mirror add, archive/unarchive and default branch changes via the
API
- Project create/update/delete via the API, and closing/reopening
projects in the web UI
- `repository:create` for migrations, `pr:merge` for scheduled
auto-merges, `pr:comment:create` for reviews (with `review_id` and
`review_type`) and review code comments
- `repository:delete` for repositories removed by the missing-repository
cleanup or an owner purge

Webhook, secret and OAuth2 application events now also keep the
impersonator.

Assisted-by: Claude Code:claude-fable-5-2

---------

Signed-off-by: bircni <bircni@icloud.com>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: delvh <dev.lh@web.de>
2026-11-15 13:49:58 +00:00
..