Skip to content

Set ubuntu-slim as default runner for safe-outputs jobs - #2783

Merged
pelikhan merged 3 commits into
mainfrom
copilot/set-default-image-for-scripts
Oct 30, 2025
Merged

pelikhan merged 3 commits into
mainfrom
copilot/set-default-image-for-scripts

Conversation

Copilot AI commented Oct 30, 2025 •

Copy link
Copy Markdown
Contributor

Safe-outputs jobs (pre-activation, activation, create-issue, add-comment, update-reaction, etc.) now default to ubuntu-slim instead of ubuntu-latest, reducing costs by using GitHub's 1 vCPU Linux runner. Main agent and detection jobs remain on ubuntu-latest.

Changes

  • Runtime: Updated formatSafeOutputsRunsOn() default from ubuntu-latest to ubuntu-slim
  • Schema: Updated frontmatter schema description with new default and blog post link
  • Documentation: Updated safe-outputs and frontmatter reference docs
  • Tests: Updated test expectations for new default

Override behavior

The runs-on field in safe-outputs: continues to override the default:

safe-outputs:
  runs-on: windows-latest  # Overrides default for all safe-outputs jobs
  create-issue:
    title-prefix: "[bot] "

Affected jobs

Jobs now using ubuntu-slim:

  • pre_activation (membership/stop-time checks)
  • activation (timestamp/reaction setup)
  • All safe-output jobs (create-issue, add-comment, update-issue, etc.)
  • update_reaction (reaction updates)

Jobs unchanged (still ubuntu-latest):

  • agent (AI engine execution)
  • detection (threat detection)
Original prompt

Set the ubuntu-slim as the default image for safe outputs, pre-activation, activation, update_reaction (runs-on field)

Add link to https://github.blog/changelog/2025-10-28-1-vcpu-linux-runner-now-available-in-github-actions-in-public-preview/

Make sure this is a field in the frontmatter to override this setting.


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

- 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]>
@pelikhan
pelikhan marked this pull request as ready for review October 30, 2025 11:59
Copilot AI review requested due to automatic review settings October 30, 2025 11:59
@github-actions

Copy link
Copy Markdown
Contributor

Agentic Changeset Generator triggered by this pull request.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 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-slim for 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.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Dev Hawk Report - Success

Workflow Run: #2981

  • Status: ✅ completed
  • Conclusion: ✅ success
  • Commit: d83a363
  • Branch: copilot/set-default-image-for-scripts
  • Duration: ~1 minute 11 seconds
  • Triggered by: @pelikhan via workflow_dispatch

Summary

The Dev workflow completed successfully! 🎉

All checks passed for the changes that update the default runner from ubuntu-latest to ubuntu-slim for safe outputs jobs. The workflow validated:

  • Code compilation and build
  • Unit and integration tests
  • Linting and formatting checks
  • Workflow compilation and schema validation

The implementation looks good and ready for review!

AI generated by Dev Hawk

Copilot AI changed the title [WIP] Set ubuntu-slim as default image for workflows Set ubuntu-slim as default runner for safe-outputs jobs Oct 30, 2025
Copilot AI requested a review from pelikhan October 30, 2025 12:04
@pelikhan
pelikhan merged commit 31a0895 into main Oct 30, 2025
@pelikhan
pelikhan deleted the copilot/set-default-image-for-scripts branch October 30, 2025 12:06
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.

3 participants