mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 12:22:14 +03:00
The previous workflow declared 'permissions: administration: write' which is not a valid GITHUB_TOKEN scope and silently failed every run, leaving release/v3.8.3 unlocked. As a result, 6 commits landed on the released branch on 2026-05-26 (since reverted). Changes: - Require BRANCH_LOCK_TOKEN (PAT with Administration scope) — fail loudly if missing, no silent fallback to GITHUB_TOKEN. - Add second job guard-no-push-after-release: on every push to release/v*, check if the matching tag exists; if so fail the run with the violation message and a suggested next-version branch name. - Trigger now includes 'on: push: branches: release/v*' as defense in depth. Hard Rule #18 (proposed): branches release/vX.Y.Z whose tag vX.Y.Z exists are immutable. Hotfixes go on release/vX.Y.(Z+1).