only trigger fork handling if the repo slugs don't match

This commit is contained in:
Willy Kloucek
2022-01-20 08:55:18 +01:00
parent e436d7d26c
commit 4f294d589c
+1 -1
View File
@@ -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",