Script to Secure Your GitHub Repos
Here is a script using the GitHub gh CLI to iterate over all of your repos and make them more secure by setting the following settings on them:
- pull requests only allowed for collaborators (to prevent cache poisoning attacks)
- immutable releases (because immutable releases are good)