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