Skip to content

Only admins run builds by hand, only maintainers promote - #57

Merged
lukas-frey merged 1 commit into
mainfrom
feature/maintainer-only-runs
Nov 28, 2026
Merged

lukas-frey merged 1 commit into
mainfrom
feature/maintainer-only-runs

Conversation

@lukas-frey

@lukas-frey lukas-frey commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Release, the build workflows and Mirror now fail when started by hand by anyone but an admin. Promote takes admins and maintainers, like the merge gate in flock.

Scheduled runs are not affected. The check is a small local action, .github/actions/require-role.

Summary by CodeRabbit

  • New Features
    • Manually triggered build and release workflows now require an authorized repository role. Most are limited to administrators; promotion decisions are available to administrators and maintainers.
  • Documentation
    • Updated release and workflow guidance to explain who can manually run these workflows and make promotion decisions.

@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Walkthrough

Changes: Workflow role checks

Layer / File(s) Summary
Define the role check
.github/actions/require-role/action.yml
The composite action checks the actor’s repository role for workflow_dispatch events. The allowed roles default to admin; other event types skip the check.
Apply default role checks
.github/workflows/build-*, .github/workflows/build-service.yml, .github/workflows/mirror.yml, .github/workflows/release.yml, README.md
Build, release, and mirror workflows run the action after checkout. The README states that admins can manually run release and build workflows.
Configure promote roles
.github/workflows/promote.yml, README.md
The Promote workflow allows admin and maintain roles. The README documents the admin and maintainer restriction.

Change: Other

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@lukas-frey
lukas-frey merged commit f789767 into main Nov 28, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant