Skip to content

Add Copilot coding agent environment setup workflow#373

Merged
BenjaminMichaelis merged 2 commits intomainfrom
copilot/customize-dev-environment
Feb 3, 2026
Merged

Add Copilot coding agent environment setup workflow#373
BenjaminMichaelis merged 2 commits intomainfrom
copilot/customize-dev-environment

Conversation

Copy link
Contributor

Copilot AI commented Feb 3, 2026

Configures the GitHub Copilot coding agent development environment to enable AI-assisted coding in this repository.

Changes

  • Created .github/workflows/copilot-setup-steps.yml

    • Job named copilot-setup-steps (required by Copilot)
    • Minimal permissions: contents: read
    • Triggers on workflow_dispatch, push/PR to the workflow file itself
  • Reused existing CI components

    • actions/checkout@v4 from dotnetBuild.yml
    • actions/setup-dotnet@v4 with global-json-file: "./global.json" from dotnetBuild.yml
    • dotnet restore command from dotnetBuild.yml

The workflow prepares a .NET 8.0 environment with restored dependencies before Copilot begins work, following the official GitHub documentation pattern.

Original prompt

This section details on the original issue you should resolve

<issue_title>Customizing the development environment for GitHub Copilot coding agent</issue_title>
<issue_description>https://docs.github.com/en/enterprise-cloud@latest/copilot/how-tos/use-copilot-agents/coding-agent/customize-the-agent-environment

Sample:

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@v4
        with:
          node-version: "20"
          cache: "npm"

      - name: Install JavaScript dependencies
        run: npm ci

Reuse/share components from our existing CI pipelines where we can</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
Copilot AI changed the title [WIP] Customize the development environment for Copilot agent Add Copilot coding agent environment setup workflow Feb 3, 2026
@BenjaminMichaelis BenjaminMichaelis marked this pull request as ready for review February 3, 2026 00:24
@BenjaminMichaelis BenjaminMichaelis merged commit 9055df1 into main Feb 3, 2026
3 of 4 checks passed
@BenjaminMichaelis BenjaminMichaelis deleted the copilot/customize-dev-environment branch February 3, 2026 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Customizing the development environment for GitHub Copilot coding agent

2 participants