From 03f79f005e304f66b68696e77e59357bb6774a51 Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Fri, 8 Mar 2024 16:21:33 +0800 Subject: [PATCH] Fix check-merge workflow on PRs from forks (#10366) --- .github/workflows/check-merge.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-merge.yml b/.github/workflows/check-merge.yml index 0951081ed5..7780f2aa96 100644 --- a/.github/workflows/check-merge.yml +++ b/.github/workflows/check-merge.yml @@ -1,6 +1,6 @@ name: Check mergeability -on: pull_request +on: pull_request_target permissions: pull-requests: write @@ -35,6 +35,7 @@ jobs: - uses: actions/checkout@v4 if: steps.blocked.outputs.result != 'true' with: + repository: ${{ github.event.pull_request.head.repo.full_name }} fetch-depth: 0 - name: Get changed files in the .changeset folder