Add bypass_actors support to GitHub rulesets #129
Reference in New Issue
Block a user
Delete Branch "benvin/ruleset-bypass-actors"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Rulesets cannot name bypass actors, so a rule like tag creation can only be enforced for everyone, admins and maintainers included.
bypass_actorsto ruleset YAML (actor_type,actor_idorteam,bypass_modedefaulting toalways)teamto the id of a team managed underteam/actor_typeandbypass_modeagainst the provider values,teamset exactly forTeamactors and known,actor_idrequired forRepositoryRole/Integration/Userand rejected otherwiseactor_idis set forRepositoryRole/Integration/User/Team-less id-bearing actors (provider 6.13.0: actor_id optional, must be omitted only forOrganizationAdmin/EnterpriseOwner/DeployKey); a missing id fails at apply with a GitHub 422 → add a validation requiringactor_id != nullfor those types.actor_type/bypass_modeare free strings, typos surface only at apply → validate againstIntegration|OrganizationAdmin|RepositoryRole|Team|DeployKey|EnterpriseOwner|Userandalways|pull_request|exempt.Teamwith bothteamandactor_idsilently dropsactor_id→ reject.No findings.