Repository navigation
feat(rulesets): let repository admins bypass required checks in pull requests - #35
Merged
Merged
Conversation
…requests
A security advisory's pull requests come from a temporary private fork
where GitHub Actions does not run, so the required checks never report
and GitHub refuses the merge ("may only be merged by someone that can
bypass branch protections"). DIRAC GHSA-wh9g-g683-q496 is blocked on it.
Add the repository admin role as a bypass actor of `required-checks`,
in `pull_request` mode: an admin can merge a pull request with "Merge
without waiting for requirements" (logged in the ruleset insights), and
pushes to the protected branches stay blocked. Templates can now give a
bypass mode next to an actor's name.
Assisted-by: Claude:claude-opus-5-5
fstagni
approved these changes
Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Security advisory pull requests come from a temporary private fork where GitHub Actions does not run. Their required checks never report, so GitHub refuses the merge: "These changes may only be merged by someone that can bypass branch protections." No ruleset has a bypass actor today, so nobody can merge them.
Change
required-checksgets the repository admin role as a bypass actor, inpull_requestmode. An admin can merge a pull request with "Merge without waiting for requirements", and the bypass is logged in the ruleset insights. Direct pushes to the protected branches stay blocked.branches(review + signed commits) is unchanged: advisory PRs can satisfy it.scripts/rulesets.py: a template lists an actor by name (always, as before) or as{"actor": name, "bypass_mode": "pull_request"}.repos.tomlgains therepository-adminactor (RepositoryRole5).Effect
scripts/rulesets.py diffon this branch: onlyrequired-checks.bypass_actorschanges, in the 11 repositories that have required checks (.github, container-images, DB12, DIRAC, diraccfg, DIRACOS2, diracx-charts, management, mkdocs-diracx-plugin, Pilot, WebAppDIRAC). Everything else is in sync.Tests and pre-commit pass. After merging:
scripts/rulesets.py apply --repo <repo> --yesfor each of them.🤖 Generated with Claude Code