Skip to content

Conversation

@Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Oct 29, 2025

The team repo currently only supports creating "classic" branch protections, not the more modern "rulesets". Unfortunately rulesets are required to allow GitHub Apps to bypass branch protections (e.g. to push to protected branches without PRs). For the crates.io repository, Marco manually created a ruleset based on the current classic branch protection. Once the team repo supports rulesets we will bring them back into the repo.

Context: https://rust-lang.zulipchat.com/#narrow/channel/242791-t-infra/topic/crates.2Eio.20GitHub.20app/with/547767243

The `team` repo currently only supports creating "classic" branch protections, not the more modern "rulesets". Unfortunately rulesets are required to allow GitHub Apps to bypass branch protections (e.g. to push to protected branches without PRs). For the crates.io repository, Marco manually created a ruleset based on the current classic branch protection. Once the `team` repo supports rulesets we will bring them back into the repo.
@marcoieni
Copy link
Member

Unfortunately rulesets are required to allow GitHub Apps to bypass branch protections (e.g. to push to protected branches without PRs).

Yeah, I didn't find a way to do this with classic branch protections unfortunately

Here's the ruleset I created. It should have the same functionalities as the classic branch protection.

image image

@marcoieni marcoieni added this pull request to the merge queue Oct 29, 2025
@github-actions
Copy link

Dry-run check results

[WARN  sync_team] sync-team is running in dry mode, no changes will be applied.
[INFO  sync_team] synchronizing github

Merged via the queue into rust-lang:master with commit 0febab9 Oct 29, 2025
3 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.

2 participants