From 17c6b1d54325cd78eb424007053dba7b9f326017 Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Wed, 16 Apr 2025 22:49:52 +0100 Subject: [PATCH] Add legacy branch protection policy for the scanners --- .github/policies/branch-protection.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .github/policies/branch-protection.yml diff --git a/.github/policies/branch-protection.yml b/.github/policies/branch-protection.yml new file mode 100644 index 0000000..05541df --- /dev/null +++ b/.github/policies/branch-protection.yml @@ -0,0 +1,8 @@ +name: SDL +description: Requires one reviewer for merges into main branch +resource: repository +where: +configuration: + branchProtectionRules: + - branchNamePattern: "main" + requiredApprovingReviewsCount: 1