From 65d27f252aed61f748dc1cdbef66e38843740b61 Mon Sep 17 00:00:00 2001 From: Marko Reiprecht Date: Mon, 9 Dec 2024 15:53:02 +0100 Subject: [PATCH] add current project id as sourceRepositoryId to fetch of pull requests to avoid that bot needs read permission to all pr source repositories --- lib/modules/platform/azure/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/modules/platform/azure/index.ts b/lib/modules/platform/azure/index.ts index 21bd44eaa3f58c..9200f0e37dbdbf 100644 --- a/lib/modules/platform/azure/index.ts +++ b/lib/modules/platform/azure/index.ts @@ -259,7 +259,11 @@ export async function getPrList(): Promise { do { fetchedPrs = await azureApiGit.getPullRequests( config.repoId, - { status: 4 }, + { + status: 4, + // fetch only prs directly created on the repo and not by forks + sourceRepositoryId: config.project, + }, config.project, 0, skip,