Repository navigation
Let org admins bypass the UAT rules, and keep the rollout script from removing it - #502
Merged
Merged
Conversation
… removing it The UAT ruleset requires an independent code-owner review for .github/, package.json and other sensitive paths. The code-owner team can be one person, who can't approve their own PRs, so those PRs could never merge. Org admins now have an "always" bypass on the live UAT ruleset in both repositories. configure-cicd.py set the UAT bypass list to empty, so its next --apply would have silently removed that. Make the script, its test and the policy docs match the live setting. The branch-invariants ruleset (no deletion or force-push) still has no bypass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 of 5 tasks
Contributor
Author
|
The matching TripBot change is TripSit/TripBot#1596. |
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.
Summary
The UAT ruleset requires an independent code-owner review for
.github/,package.jsonand the other paths in.github/CODEOWNERS. The code-owner team can be a single person, who can't approve their own PRs, so those PRs could never merge. Org admins now have an Always bypass on the live UAT ruleset, in both TripSit/website and TripSit/TripBot..github/scripts/configure-cicd.pybuilds these rulesets, and it set the UAT bypass list to[]. Its next--phase queue --applywould have quietly removed the bypass. This PR makes the script, its test and the policy docs match the live setting:configure-cicd.py: the UAT bypass is nowOrganizationAdmin,always. This is exactly what the live ruleset returns.configure-cicd.test.py: asserts that bypass, and that the branch-invariants ruleset (no deletion or force-push) still has none.CICD-POLICY.md,.github/CICD-ROLLOUT.md,docs/ci-queue-verification.md: no longer say UAT has no bypass.Only the org's two admin accounts get the bypass. Maintainers still need an approval for sensitive paths. The Main ruleset and the promotion flow are unchanged.
The same change is in TripSit/TripBot (PR opened alongside this one); the two patches are identical.
Type of change
Test plan
python3 .github/scripts/configure-cicd.test.py: 5 pass.node --test .github/scripts/release-policy.test.mjs: 17 pass.python3 .github/scripts/configure-cicd.py --repository <repo> --phase queue(dry run) plans exactly the bypass the live UAT ruleset already has.🤖 Generated with Claude Code