Files
gitea-MIRROR/services/release
Basavaraj S m 19c7e76ac3 fix(release): check protected tags against the user editing a release (#40464)
Editing or publishing a release can create its tag, and `createTag`
checked protected tag rules against the release publisher instead of the
user making the request. A release writer outside a protected tag's
allowlist could get that tag created by editing a release an allowlisted
user published, or by publishing an allowlisted user's draft.

`createTag` now uses the acting user for the protected tag check and for
the push and create-ref events, like `CreateNewTag`. GitHub likewise
checks tag rulesets against the user who publishes a release.

Assisted-by: Claude Code:claude-opus-5-5

---------

Co-authored-by: silverwind <me@silverwind.io>
2026-11-27 04:05:01 +00:00
..