From c55559f54d6d3142baf74e8d676b21f7858a30e4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 15 Aug 2026 01:31:56 +0000 Subject: [PATCH] fix: use env var for PR number in shell script; add changelog Co-authored-by: kaovilai <11228024+kaovilai@users.noreply.github.com> --- .github/workflows/auto_assign_prs.yml | 4 +++- changelogs/unreleased/10286-Copilot | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelogs/unreleased/10286-Copilot diff --git a/.github/workflows/auto_assign_prs.yml b/.github/workflows/auto_assign_prs.yml index 5dd3fb31a..327504dc6 100644 --- a/.github/workflows/auto_assign_prs.yml +++ b/.github/workflows/auto_assign_prs.yml @@ -41,10 +41,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Save PR number to artifact + env: + PR_NUMBER: ${{ github.event.pull_request.number }} run: | mkdir -p /tmp/pr # Write only the numeric PR number; the privileged workflow validates this. - printf '%s' '${{ github.event.pull_request.number }}' > /tmp/pr/number + printf '%s' "${PR_NUMBER}" > /tmp/pr/number - name: Upload PR number artifact uses: actions/upload-artifact@v4 with: diff --git a/changelogs/unreleased/10286-Copilot b/changelogs/unreleased/10286-Copilot new file mode 100644 index 000000000..884bff8b4 --- /dev/null +++ b/changelogs/unreleased/10286-Copilot @@ -0,0 +1 @@ +Fix GitHub Actions workflow to re-request maintainer review for fork-originated pull requests using a privilege-separated workflow_run design \ No newline at end of file