From 0a4f5229e54ff0d66b2f7db122cb9036236df2de Mon Sep 17 00:00:00 2001 From: aram price Date: Tue, 25 Aug 2026 15:12:40 -0700 Subject: [PATCH] Workflow: disallow PR's to master --- .github/workflows/protect-master.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/protect-master.yml diff --git a/.github/workflows/protect-master.yml b/.github/workflows/protect-master.yml new file mode 100644 index 000000000..8394cfc48 --- /dev/null +++ b/.github/workflows/protect-master.yml @@ -0,0 +1,17 @@ +name: Master Branch Protection + +on: + pull_request: + types: [opened, reopened, synchronize, edited] + +permissions: {} + +jobs: + check-branch: + runs-on: ubuntu-latest + steps: + - name: Check branch + if: github.event.pull_request.base.ref == 'master' + run: | + echo "Error: Pull request against master is prohibited" + exit 1 \ No newline at end of file