Repository navigation
Set ubuntu-slim as default runner for safe-outputs jobs - #2783
Conversation
- Update default from ubuntu-latest to ubuntu-slim in formatSafeOutputsRunsOn - Add link to GitHub blog post about 1 vCPU Linux runner - Update tests to reflect new default - Update JSON schema description with new default and blog link - Update documentation in frontmatter.md, safe-outputs.md, and frontmatter-full.md - Verify frontmatter override still works correctly Co-authored-by: pelikhan <[email protected]>
|
Agentic Changeset Generator triggered by this pull request. |
There was a problem hiding this comment.
Pull Request Overview
This PR updates the default runner for safe outputs jobs from ubuntu-latest to ubuntu-slim, which provides a lightweight, cost-effective 1 vCPU Linux runner. The main agent job continues using ubuntu-latest and is unaffected by this change.
Key Changes:
- Default runner changed to
ubuntu-slimfor activation, pre-activation, update_reaction, and safe outputs jobs - Documentation and schema updated to reflect new default and include reference to GitHub blog post
- All workflow lock files regenerated with new default
Reviewed Changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/workflow/safe_outputs.go | Updates default runner return value to ubuntu-slim with reference link |
| pkg/workflow/safe_outputs_runs_on_test.go | Updates test expectations to validate ubuntu-slim as default |
| pkg/parser/schemas/main_workflow_schema.json | Updates schema description with new default and GitHub blog reference |
| docs/src/content/docs/reference/safe-outputs.md | Updates documentation to describe new default and its benefits |
| docs/src/content/docs/reference/frontmatter.md | Clarifies that ubuntu-latest default applies only to main job |
| docs/src/content/docs/reference/frontmatter-full.md | Updates example to show ubuntu-slim as default with reference link |
| .github/workflows/*.lock.yml | Regenerated workflow files reflecting ubuntu-slim for safe outputs jobs |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
✅ Dev Hawk Report - SuccessWorkflow Run: #2981
SummaryThe Dev workflow completed successfully! 🎉 All checks passed for the changes that update the default runner from
The implementation looks good and ready for review!
|
Safe-outputs jobs (pre-activation, activation, create-issue, add-comment, update-reaction, etc.) now default to
ubuntu-sliminstead ofubuntu-latest, reducing costs by using GitHub's 1 vCPU Linux runner. Main agent and detection jobs remain onubuntu-latest.Changes
formatSafeOutputsRunsOn()default fromubuntu-latesttoubuntu-slimOverride behavior
The
runs-onfield insafe-outputs:continues to override the default:Affected jobs
Jobs now using
ubuntu-slim:Jobs unchanged (still
ubuntu-latest):Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.