From 7eedb954cbb698f11884ec46f3b9cbe87351e4e5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 20 Sep 2025 08:03:10 +0000 Subject: [PATCH 1/4] Initial plan From e5036530cf5742db76dfa3d42f1d8eeecb913633 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 20 Sep 2025 08:07:07 +0000 Subject: [PATCH 2/4] Create copilot-setup-steps.yml workflow for GitHub Copilot agents Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com> --- .github/workflows/copilot-setup-steps.yml | 34 +++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/copilot-setup-steps.yml diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml new file mode 100644 index 0000000..1024bc9 --- /dev/null +++ b/.github/workflows/copilot-setup-steps.yml @@ -0,0 +1,34 @@ +name: Copilot Setup Steps + +on: + workflow_call: + workflow_dispatch: + +defaults: + run: + shell: pwsh + +jobs: + copilot-setup-steps: + name: copilot-setup-steps + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - name: Setup .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: 8.x + - name: Setup Dependency Caching + uses: actions/cache@v4 + id: nuget-cache + with: + path: | + ~/.nuget/packages + ${{ github.workspace }}/**/obj/project.assets.json + key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} + restore-keys: | + ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} + ${{ runner.os }}-nuget- + + - name: Restore dependencies + run: dotnet restore \ No newline at end of file From bb8bfe917fb272489ed723d0dc151756aa525a58 Mon Sep 17 00:00:00 2001 From: Benjamin Michaelis Date: Sat, 20 Sep 2025 01:18:25 -0700 Subject: [PATCH 3/4] Update copilot-setup-steps.yml --- .github/workflows/copilot-setup-steps.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index 1024bc9..ff570bc 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -1,8 +1,14 @@ name: Copilot Setup Steps + on: - workflow_call: workflow_dispatch: + push: + paths: + - .github/workflows/copilot-setup-steps.yml + pull_request: + paths: + - .github/workflows/copilot-setup-steps.yml defaults: run: From 49242365b3b795d4ad839c557fcd932891c6f14e Mon Sep 17 00:00:00 2001 From: Benjamin Michaelis Date: Sat, 20 Sep 2025 01:19:26 -0700 Subject: [PATCH 4/4] Update copilot-setup-steps.yml --- .github/workflows/copilot-setup-steps.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index ff570bc..bedb5e2 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -18,6 +18,10 @@ jobs: copilot-setup-steps: name: copilot-setup-steps runs-on: ubuntu-latest + + permissions: + # If you want to clone the repository as part of your setup steps, for example to install dependencies, you'll need the `contents: read` permission. + contents: read steps: - uses: actions/checkout@v5 - name: Setup .NET