Add GitHub Actions workflow for GitHub Copilot coding agent development environment setup#366
Merged
Merged
Conversation
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add GitHub Actions workflow for Copilot setup
Add GitHub Actions workflow for coding agent development environment setup
Oct 9, 2025
Mossaka
suggested changes
Oct 9, 2025
Comment on lines
+1
to
+13
| name: Copilot Setup Steps | ||
|
|
||
| # This workflow provides reusable setup steps for GitHub Copilot coding agents | ||
| # to prepare a development environment for the Wassette project. | ||
| # It can be referenced by other workflows or used as a template for agent setup. | ||
|
|
||
| "on": | ||
| workflow_call: | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| setup: | ||
| runs-on: ubuntu-latest |
Contributor
There was a problem hiding this comment.
modify this to
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
Contributor
Author
There was a problem hiding this comment.
Updated in commit 2a8af34. The workflow now:
- Uses job name
copilot-setup-steps(required for Copilot detection) - Includes
pushandpull_requesttriggers for the workflow file path - Has explicit
permissions: contents: read - Updated comments to clarify Copilot requirements
- Change workflow name to quoted "Copilot Setup Steps" - Add push/pull_request triggers for workflow file path validation - Rename job from 'setup' to 'copilot-setup-steps' (required for Copilot) - Add explicit permissions with contents: read - Update comments to clarify Copilot requirements Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Copilot
AI
changed the title
Add GitHub Actions workflow for coding agent development environment setup
Add GitHub Actions workflow for GitHub Copilot coding agent development environment setup
Oct 9, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR adds a new GitHub Actions workflow
.github/workflows/copilot-setup-steps.ymlthat prepares a complete development environment for GitHub Copilot coding agents. The workflow follows GitHub Copilot's specific requirements and will be automatically detected and used by Copilot agents working on the Wassette project.Motivation
GitHub Copilot coding agents working on the Wassette project need a consistent, reproducible development environment with all necessary tools installed. While the project provides a Nix flake for local development, this workflow offers a GitHub Actions-native solution optimized for CI/CD runners and automated agents that meets Copilot's specific requirements.
What's Included
The workflow installs and configures:
Rust Development
cargo +nightly fmt)Build Tools
Language Support
Performance
./.github/actions/rust-cachefor faster buildsGitHub Copilot Requirements
The workflow follows GitHub Copilot's specific requirements:
copilot-setup-stepsfor Copilot to automatically detect and use itcontents: read(minimum required permissions)Usage
Automatic Detection by GitHub Copilot
GitHub Copilot coding agents will automatically detect and use this workflow when working on the repository.
Manual Trigger
The workflow can be manually triggered from the GitHub Actions UI for testing or debugging purposes.
Validation
The workflow automatically runs when changes are made to itself, enabling easy validation of modifications.
Verification
The workflow includes a final verification step that displays:
Consistency
All GitHub Action versions match those used in existing workflows (
rust.yml,examples.yml) to ensure consistency across the project's CI/CD infrastructure.Changes
.github/workflows/copilot-setup-steps.yml- Complete dev environment setup workflow for GitHub CopilotCHANGELOG.md- Added entry in [Unreleased] > Added sectionCloses #[issue_number]
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.