This repository will hold scripts and other tools that make it easier to manage and define policy for the GitHub Policy Service.
Prerequisites:
The branch_protection_export.ps1 script is used to export existing branch protection rules into the yaml format supported by the GitHub Policy Service.
The branch_protection_bulk_export.ps1 script is used to export bulk existing branch protection rules into the yaml format supported by the GitHub Policy Service.
Workflow
The suggested workflow is:
Now you have gitop enabled your branch protection rules.