From 651f9ec59108a64471659574c8a3bd27f67fa0fd Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Wed, 12 Aug 2026 21:14:00 +0200 Subject: [PATCH 1/2] ci: add copilot-code-review.yml to declare a runner for Copilot code review --- .github/workflows/copilot-code-review.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/copilot-code-review.yml diff --git a/.github/workflows/copilot-code-review.yml b/.github/workflows/copilot-code-review.yml new file mode 100644 index 00000000000..7ff8604cac2 --- /dev/null +++ b/.github/workflows/copilot-code-review.yml @@ -0,0 +1,22 @@ +# spell-checker:ignore Swatinem +name: Copilot Code Review + +# Declares the runner used by Copilot code review. Without this file, the +# review can fail to start before its timeout because no runner is assigned. +on: + workflow_dispatch: + pull_request: + paths: + - .github/workflows/copilot-code-review.yml + +permissions: + contents: read + +jobs: + copilot-setup-steps: + # Copilot code review only supports Ubuntu x64 runners. + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7.0.1 + - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 From 3b36bf0a5040999d81282c3f16030788a7b13c37 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Fri, 14 Aug 2026 10:39:02 +0200 Subject: [PATCH 2/2] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/workflows/copilot-code-review.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/copilot-code-review.yml b/.github/workflows/copilot-code-review.yml index 7ff8604cac2..c6d920fe1f8 100644 --- a/.github/workflows/copilot-code-review.yml +++ b/.github/workflows/copilot-code-review.yml @@ -18,5 +18,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v7.0.1 + with: + persist-credentials: false - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2