Skip to content

Add sandbox-sudo-false-rollout workflow - #41363

Closed
pelikhan with Copilot wants to merge 3 commits into
mainfrom
copilot/enable-sandbox-sudo-false
Closed

Add sandbox-sudo-false-rollout workflow#41363
pelikhan with Copilot wants to merge 3 commits into
mainfrom
copilot/enable-sandbox-sudo-false

Conversation

Copilot AI commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Introduces a workflow_dispatch agentic workflow to incrementally roll out sandbox.agent.sudo: false (rootless/network-isolation AWF mode) across this repository's workflows — starting with 25% of those currently opting in to sudo: true.

What the workflow does

  • Parses YAML frontmatter (Python, not grep) to find all .md workflows with sandbox.agent.sudo: true — avoids false positives from prose/code in prompt bodies
  • Selects ⌈N × 0.25⌉ files (alphabetical sort → deterministic; currently 64 eligible → 16 selected)
  • Skips files with >1 sudo: true occurrence in frontmatter (ambiguous)
  • Flips sudo: truesudo: false, then recompiles each via gh aw compile to regenerate the .lock.yml with --rootless AWF mode
  • Opens a draft PR scoped to *.md + *.lock.yml under .github/workflows/

Permissions note

Uses allow-workflows: true + shared/app-config.md (GitHub App) because workflows:write cannot be granted via GITHUB_TOKEN.

Copilot AI and others added 3 commits June 25, 2026 04:29
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI requested a review from pelikhan June 25, 2026 04:35
@pelikhan pelikhan closed this Jun 25, 2026
@github-actions
github-actions Bot deleted the copilot/enable-sandbox-sudo-false branch July 3, 2026 03:00
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.

2 participants