From eb63e45101f833582f49d6b9f6239a3d70591589 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 29 May 2026 09:29:56 +0000 Subject: [PATCH 1/2] Initial plan From bf875eeca3221eb5acc0f29b319181cc4a7d73bb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 29 May 2026 09:35:32 +0000 Subject: [PATCH 2/2] Skip PR governance issue check for fork PRs Co-authored-by: saanikaguptamicrosoft <193585514+saanikaguptamicrosoft@users.noreply.github.com> --- .github/scripts/pr-governance-issue-check.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/scripts/pr-governance-issue-check.js b/.github/scripts/pr-governance-issue-check.js index 2b4c45640e2..0db49c84a33 100644 --- a/.github/scripts/pr-governance-issue-check.js +++ b/.github/scripts/pr-governance-issue-check.js @@ -10,6 +10,14 @@ module.exports = async ({ github, context, core }) => { return; } + // Skip for fork PRs (read-only token cannot leave actionable governance comments) + const isForkPr = pr.head?.repo?.full_name && pr.head.repo.full_name !== `${context.repo.owner}/${context.repo.repo}`; + if (isForkPr) { + console.log(`Skipping: fork PR from ${pr.head.repo.full_name}`); + core.setOutput('skipped', 'true'); + return; + } + // Skip for dependabot and automated PRs const skipAuthors = ['dependabot[bot]', 'dependabot', 'app/dependabot', 'azure-sdk']; if (skipAuthors.includes(pr.user.login)) {