diff --git a/.github/workflows/copilot-code-review.yml b/.github/workflows/copilot-code-review.yml new file mode 100644 index 00000000000..c6d920fe1f8 --- /dev/null +++ b/.github/workflows/copilot-code-review.yml @@ -0,0 +1,24 @@ +# 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 + with: + persist-credentials: false + - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2