From 54087e7276b07a2813aa4e6540d16c51e8f33657 Mon Sep 17 00:00:00 2001 From: Jeff Handley Date: Fri, 3 Apr 2026 01:23:03 -0700 Subject: [PATCH] Block Release Publishing workflow from automatically running on forks (#1450) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 52d8e3e..0b978ae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,6 +32,8 @@ on: jobs: build-all-configs: + # Don't run scheduled/release triggers on forks; allow manual workflow_dispatch + if: ${{ github.repository == 'modelcontextprotocol/csharp-sdk' || github.event_name == 'workflow_dispatch' }} strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest]