From 0824d2516739b634154e211583db0dbcb960ede3 Mon Sep 17 00:00:00 2001 From: Dmitrii Bobreshev <106314398+DmitriiBobreshev@users.noreply.github.com> Date: Thu, 19 Dec 2024 12:54:34 +0100 Subject: [PATCH] Added check for forked branches (#20720) Co-authored-by: Evgenii Dergachev <84813671+DergachevE@users.noreply.github.com> --- ci/build-all-steps.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ci/build-all-steps.yml b/ci/build-all-steps.yml index ba4c8f338b80..530a5204bc6c 100644 --- a/ci/build-all-steps.yml +++ b/ci/build-all-steps.yml @@ -29,6 +29,12 @@ steps: - script: npm install displayName: npm install +- script: | + echo "##[error]PRs from fork repositories forbidden. Create PR directly." + exit 1 + displayName: Check Is Forked PR + condition: eq(variables['SYSTEM.PULLREQUEST.ISFORK'], 'true') + # Verify min agent demands - script: | cd ci/verifyMinAgentDemands