Skip to content

Commit 016e4c9

Browse files
committed
fix(ci): restrict auto release marker to release bot
1 parent d952d56 commit 016e4c9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/auto-release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Auto Release (commit marker)
22

33
# Two flows, both driven by markers in the head commit message:
44
#
5-
# --release vMAJOR.MINOR.PATCH
5+
# --release vMAJOR.MINOR.PATCH (restricted to OpenCoven release bot)
66
# Cut a brand-new release. The requested tag must be strictly greater
77
# (semver) than the highest existing tag, and must not already exist.
88
# Stamps the version across Cargo.toml/lock, npm, README, docs, and the
@@ -36,8 +36,11 @@ concurrency:
3636
cancel-in-progress: false
3737

3838
jobs:
39+
# Restricted to the release bot so contributor-controlled PR titles or
40+
# commit messages cannot authorize a release when a maintainer merges them.
3941
auto-release:
4042
runs-on: ubuntu-latest
43+
if: github.actor == 'opencoven-bot'
4144

4245
steps:
4346
# ── 0. Skip our own bump commits ──────────────────────────────────

0 commit comments

Comments
 (0)