refactor: sanitize webhook auth payload (#1157)

This commit is contained in:
Jonas Plum
2025-09-21 17:26:18 +02:00
committed by GitHub
parent e07afd0f3a
commit e475b38ea4
2 changed files with 40 additions and 7 deletions

View File

@@ -60,7 +60,7 @@ func runHook(ctx context.Context, queries *sqlc.Queries, collection, event strin
Action: event,
Collection: collection,
Record: record,
Auth: auth,
Auth: webhook.SanitizeUser(auth),
Admin: nil,
})
if err != nil {