From df977359caf6e52346328d94d89437f303dd3e54 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 11 Oct 2025 15:16:58 +0000 Subject: [PATCH 1/5] Initial plan From 6c09487e5e31a3293a0b1fb745bd1e4a36bd27b1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 11 Oct 2025 15:22:21 +0000 Subject: [PATCH 2/5] Add GitHub Copilot agent environment file Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/copilot/environment.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/copilot/environment.yml diff --git a/.github/copilot/environment.yml b/.github/copilot/environment.yml new file mode 100644 index 00000000000..33943c55f15 --- /dev/null +++ b/.github/copilot/environment.yml @@ -0,0 +1,25 @@ +# GitHub Copilot Agent Environment Configuration +# This file preinstalls tools and dependencies for the GitHub Copilot coding agent +# Documentation: https://docs.github.com/en/enterprise-cloud@latest/copilot/how-tos/use-copilot-agents/coding-agent/customize-the-agent-environment + +steps: + - name: Set up Node.js + uses: actions/setup-node@v5 + with: + node-version: "24" + cache: npm + cache-dependency-path: pkg/workflow/js/package-lock.json + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: go.mod + cache: true + + - name: npm ci + run: npm ci + working-directory: ./pkg/workflow/js + + - name: Build code + run: make build + continue-on-error: true From 993bd3860ff35dce8179d852e6b5329ad1420f95 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 11 Oct 2025 15:41:25 +0000 Subject: [PATCH 3/5] Fix: Convert to proper GitHub Actions workflow file in .github/workflows/ Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/copilot/environment.yml | 25 ------------ .github/workflows/copilot-setup-steps.yml | 50 +++++++++++++++++++++++ 2 files changed, 50 insertions(+), 25 deletions(-) delete mode 100644 .github/copilot/environment.yml create mode 100644 .github/workflows/copilot-setup-steps.yml diff --git a/.github/copilot/environment.yml b/.github/copilot/environment.yml deleted file mode 100644 index 33943c55f15..00000000000 --- a/.github/copilot/environment.yml +++ /dev/null @@ -1,25 +0,0 @@ -# GitHub Copilot Agent Environment Configuration -# This file preinstalls tools and dependencies for the GitHub Copilot coding agent -# Documentation: https://docs.github.com/en/enterprise-cloud@latest/copilot/how-tos/use-copilot-agents/coding-agent/customize-the-agent-environment - -steps: - - name: Set up Node.js - uses: actions/setup-node@v5 - with: - node-version: "24" - cache: npm - cache-dependency-path: pkg/workflow/js/package-lock.json - - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version-file: go.mod - cache: true - - - name: npm ci - run: npm ci - working-directory: ./pkg/workflow/js - - - name: Build code - run: make build - continue-on-error: true diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml new file mode 100644 index 00000000000..4cb13d92e81 --- /dev/null +++ b/.github/workflows/copilot-setup-steps.yml @@ -0,0 +1,50 @@ +name: "Copilot Setup Steps" + +# Automatically run the setup steps when they are changed to allow for easy validation, and +# allow manual testing through the repository's "Actions" tab +on: + workflow_dispatch: + push: + paths: + - .github/workflows/copilot-setup-steps.yml + pull_request: + paths: + - .github/workflows/copilot-setup-steps.yml + +jobs: + # The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot. + copilot-setup-steps: + runs-on: ubuntu-latest + + # Set the permissions to the lowest permissions possible needed for your steps. + # Copilot will be given its own token for its operations. + 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. If you don't clone the repository in your setup steps, Copilot will do this for you automatically after the steps complete. + contents: read + + # You can define any steps you want, and they will run before the agent starts. + # If you do not check out your code, Copilot will do this for you. + steps: + - name: Checkout code + uses: actions/checkout@v5 + + - name: Set up Node.js + uses: actions/setup-node@v5 + with: + node-version: "24" + cache: npm + cache-dependency-path: pkg/workflow/js/package-lock.json + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: go.mod + cache: true + + - name: Install JavaScript dependencies + run: npm ci + working-directory: ./pkg/workflow/js + + - name: Build code + run: make build + continue-on-error: true From ab5192f2c676952c5310e1dd1af6f398d8ad2610 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 11 Oct 2025 15:49:30 +0000 Subject: [PATCH 4/5] Add make deps-dev step before build Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/workflows/copilot-setup-steps.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index 4cb13d92e81..e31f5b4f283 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -45,6 +45,9 @@ jobs: run: npm ci working-directory: ./pkg/workflow/js + - name: Install development dependencies + run: make deps-dev + - name: Build code run: make build continue-on-error: true From 2a9466c36ce0da603bbef1c3c928c0fc8f8379ec Mon Sep 17 00:00:00 2001 From: Changeset Generator Date: Sat, 11 Oct 2025 16:03:08 +0000 Subject: [PATCH 5/5] Add changeset for Copilot agent setup workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .changeset/patch-add-copilot-agent-setup-workflow.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .changeset/patch-add-copilot-agent-setup-workflow.md diff --git a/.changeset/patch-add-copilot-agent-setup-workflow.md b/.changeset/patch-add-copilot-agent-setup-workflow.md new file mode 100644 index 00000000000..3a1020ceb44 --- /dev/null +++ b/.changeset/patch-add-copilot-agent-setup-workflow.md @@ -0,0 +1,7 @@ +--- +"gh-aw": patch +--- + +Add GitHub Copilot agent setup workflow + +Adds a `.github/workflows/copilot-setup-steps.yml` workflow file to configure the GitHub Copilot coding agent environment with preinstalled tools and dependencies. The workflow mirrors the setup steps from the CI workflow's build job, including Node.js, Go, JavaScript dependencies, development tools, and build step. This provides Copilot agents with a fully configured development environment and speeds up agent workflows.