Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add info about applying rulesets for branch protection #163

Merged
merged 3 commits into from
Apr 2, 2024

Conversation

tjsilver
Copy link
Contributor

What is being recommended?

In the case of branch protection needing to be disabled on a repo, users should apply protections via rulesets instead.

What's the context?

Some apps such as the GHA Scala Library Release Workflow require branch protection to be turned off on a repo in order to work. However, rulesets can mitigate this by applying branch protection rules while allowing bypassing of the rules in certain cases (such as allowing the Gu Scala Library Release app to run with branch protection disabled).

This PR adds some information on how to apply the org-wide branch protection ruleset and also manually (for now) apply CI checks to a repo that has had the branch protection disabled.

The new github-rulesets.md page is also going to be linked to from the GHA Scala Library Release Workflow PR as specific instructions for Guardian developers (the repo is aiming to remain non-Guardian-specific).

@tjsilver tjsilver merged commit 2578424 into main Apr 2, 2024
1 check passed
@tjsilver tjsilver deleted the ts/rulesets branch April 2, 2024 14:27
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