-
Notifications
You must be signed in to change notification settings - Fork 35
feat(workflow): add copilot-setup-steps.yml for Coding Agent environment #398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Create copilot-setup-steps.yml workflow to pre-install tools for GitHub Copilot Coding Agent, bridging the devcontainer environment to GitHub Actions runners. Workflow includes: - SHA-pinned actions (checkout, setup-node, setup-python) - Node.js 20 with npm ci for JavaScript dependencies - Python 3.11 - PowerShell modules (PowerShell-Yaml) Update copilot-instructions.md with Coding Agent Environment section documenting pre-installed tools and npm script usage.
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #398 +/- ##
==========================================
- Coverage 52.44% 52.41% -0.04%
==========================================
Files 17 17
Lines 3110 3110
==========================================
- Hits 1631 1630 -1
- Misses 1479 1480 +1
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds a GitHub Actions workflow to configure the environment for GitHub Copilot Coding Agent, ensuring tool parity with the local devcontainer. The workflow pre-installs Node.js 20, Python 3.11, PowerShell modules, and verifies tool availability to enable cloud-based agents to run the same validation scripts as local developers.
Changes:
- Created
.github/workflows/copilot-setup-steps.ymlto pre-install development tools and dependencies for Copilot Coding Agent - Updated
.github/copilot-instructions.mdwith new "Coding Agent Environment" section documenting pre-installed tools, npm script usage, and environment synchronization practices
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.github/workflows/copilot-setup-steps.yml |
New workflow that sets up Node.js 20, Python 3.11, PowerShell modules, and verifies tool availability for Copilot Coding Agent with SHA-pinned actions |
.github/copilot-instructions.md |
Added documentation section describing the cloud agent environment, available tools, npm scripts for validation, and synchronization guidance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
PR review comment Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
Description
Adds
copilot-setup-steps.ymlworkflow to bridge the devcontainer environment to GitHub Actions runners for Copilot Coding Agent. The workflow pre-installs Node.js 20, Python 3.11, and PowerShell modules to match local development capabilities, enabling agents to use the same npm scripts for validation in the cloud environment..github/workflows/copilot-setup-steps.ymlwith SHA-pinned actions forcheckout,setup-node, andsetup-pythonnode,npm,python3,pwsh, andshellcheck.github/copilot-instructions.mdwith new "Coding Agent Environment" section documenting pre-installed tools and npm script usagecontents: readpermissions following principle of least privilegeRelated Issue(s)
Closes #388
Type of Change
Select all that apply:
Code & Documentation:
Infrastructure & Configuration:
AI Artifacts:
prompt-builderagent and addressed all feedback.github/instructions/*.instructions.md).github/prompts/*.prompt.md).github/agents/*.agent.md)Other:
.ps1,.sh,.py)Sample Prompts (for AI Artifact Contributions)
N/A - only updated copilot-instructions.md for the cloud agent.
Testing
npm run --listfor agent referenceChecklist
Required Checks
AI Artifact Contributions
.github/instructions/*.instructions.md)Required Automated Checks
The following validation commands must pass before merging:
npm run lint:mdnpm run spell-checknpm run lint:frontmatternpm run lint:md-linksnpm run lint:psSecurity Considerations
Additional Notes
The workflow uses SHA-pinned actions for security:
actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd(v4.2.2)actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238(v4.1.0)actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f(v5.1.1)The job is named
copilot-setup-stepsas required by GitHub Copilot documentation for automatic recognition.Intentionally excluded or leveraged from runners:
security-scan.yml, following the principle that security validation belongs in the pipeline, not the agent's editing environment. GitHub's push protection provides an additional layer of defense.