diff --git a/.github/README.md b/scripts/git-repo/branch-protection.md similarity index 100% rename from .github/README.md rename to scripts/git-repo/branch-protection.md diff --git a/.github/branch-protection.sh b/scripts/git-repo/branch-protection.sh similarity index 83% rename from .github/branch-protection.sh rename to scripts/git-repo/branch-protection.sh index c359d8cd..f98597a4 100755 --- a/.github/branch-protection.sh +++ b/scripts/git-repo/branch-protection.sh @@ -24,9 +24,6 @@ curl --location "https://api.github.com/repos/NHSDigital/$1/rulesets" \ { "type": "non_fast_forward" }, - { - "type": "required_signatures" - }, { "type": "pull_request", "parameters": { @@ -36,6 +33,16 @@ curl --location "https://api.github.com/repos/NHSDigital/$1/rulesets" \ "require_last_push_approval": true, "required_review_thread_resolution": true } + }, + { + "type": "required_signatures" + }, + { + "type": "required_status_checks", + "parameters": { + "strict_required_status_checks_policy": true, + "required_status_checks": [] + } } ] }'