Establish how fork approval behaves on this server's Gitea version #204
Notifications
Due Date
No due date set.
Blocks
Reference: Mortis/Kamino#204
Reference in new issue
Block a user
Part of #87
Question
No decision here: facts that How friends get code in and Threat model: what we defend against and what we accept rest on, which a review of the map found unverified or contradicted. Establish each, from Gitea's own release notes and source and by a live test where reading is not enough:
From the review
Resolution
Established by reading Gitea's release notes, its published security advisories and its source at the tag the server runs. No live test was run; what that leaves open is listed at the end.
1. Version and missing fixes. The server reports
28.0.0(/api/v1/version). Upstream has released 28.1.0, 28.2.0, 28.3.0 and 28.4.0 since; there are no 28.0.x patch releases.Already fixed in 28.0.0: approval decided by the event actor instead of the author, cancel-then-rerun of a waiting run, a one-time approval treated as permanent trust, and review events not attached to their pull request.
So 28.3.0 closes the fork-approval gap and 28.4.0 is the lowest version with every fix found.
2. Approval after a first merge. Approval is not asked. In
services/actions/notifier_helper.goatv28.0.0, a fork pull request run needs approval unless the user has Actions write access or has one merged pull request in the repository (// trust the user only after a merged PR). The rule is identical atv28.4.0. Both the pull request author and the user who triggered the event are checked; one of them failing is enough to require approval. An earlier "approve and run" click does not count as trust.3. Restricted accounts. The restricted check comes first: a Restricted account is always asked for approval, even with a merged pull request or write access.
4. Push onto a scheduled merge. A new push does not cancel a scheduled automerge, whoever pushes. The merge waits for the new head's checks and branch protection, then runs as the user who scheduled it. The schedule ends only on merge, on close, on re-scheduling or on an explicit cancel.
Not established