From 4f294d589cd44ca3c199ac275c3c92167e0b462f Mon Sep 17 00:00:00 2001 From: Willy Kloucek Date: Thu, 20 Jan 2022 08:55:18 +0100 Subject: [PATCH] only trigger fork handling if the repo slugs don't match --- .drone.star | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.star b/.drone.star index f0dffdf63..25420c3d3 100644 --- a/.drone.star +++ b/.drone.star @@ -358,7 +358,7 @@ def uploadScanResults(ctx): }) fork_handling = [] - if ctx.build.source_repo: + if ctx.build.source_repo != "" and ctx.build.source_repo != ctx.repo.slug: fork_handling = [ "git remote add fork https://github.com/%s.git" % (ctx.build.source_repo), "git fetch fork",