Set up branch protection
stefanb opened this issue · 3 comments
stefanb commented
https://securityscorecards.dev/viewer/?uri=github.com/refaktor/rye
doesn't find any branch protection rules:
A quick recipe to fix this:
- Visit https://github.com/refaktor/rye/settings/rules
- Add new branch ruleset
- Give it a name, eg. "default branch protection"
- Set enforcement to active
- apply it to default branch
- Tick checkboxes at
- Restrict deletions (so that the master branch cannot be deleted)
- Block force puhes (to avoid rewriting history)
- Consider other options (eg requiring pull requests, approval...)
More info about the repository rulesets: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/about-rulesets
refaktor commented
Thank you for issue and instructions. I've set it up, I hope it's OK now.
stefanb commented
Thanks! We'll see if it is ok after https://securityscorecards.dev/viewer/?uri=github.com/refaktor/rye is updated next (on a commit to master or on a weekly schedule).
stefanb commented