Repository navigation
Replies: 2 comments 1 reply
|
Yes, "fix this issue and open a PR" is one of the main things agentic workflows are built for. The container part needs a bit of care, because of how the agent is sandboxed. (1) Getting started A manually triggered fixer looks like this. It compiles with ---
on:
workflow_dispatch:
inputs:
issue_number:
description: "Issue to fix"
required: true
type: string
permissions:
contents: read
issues: read
runs-on: [self-hosted, linux, x64]
steps:
- uses: actions/setup-node@v7
with:
node-version: "22"
- run: npm ci
tools:
github:
toolsets: [issues]
bash: ["npm:*", "git:*"]
network:
allowed:
- defaults
- node
safe-outputs:
create-pull-request:
draft: true
---
Read issue #${{ github.event.inputs.issue_number }} in this repository and fix it.
Run `npm test` and keep iterating until it passes, then open a pull request
that references the issue.Replace the Node bits with your own stack. Three details matter:
(2) Running the tests "inside the dev container" The key constraint is in the sandbox docs: the agent runs inside the firewall container (AWF), the Docker socket is hidden, and agents cannot spawn containers. So the agent cannot
The frontmatter also accepts a job-level (3) Self-hosted runners From the self-hosted runners page:
|
|
Thank you so much @HereForTheTechNFT for the response! It is very helpful. Quick question on potential future support for running docker containers. It sounds like the agent runtime options are currently (docker, docker-sudo-iptables, cloud-hypervisor). It looks like in July 2026 there was a docker-sbx runtime option that did support running docker containers (see article). But on September 5, 2026 GitHub removed that in favor of cloud-hypervisor (see article). (4) Do you know if cloud-hypervisor also already supports running docker containers? Or will it in the future? Can it be supported on self-hosted runners in the future? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Dear GitHub Agentic Workflow Community,
We’re excited to start using agentic workflows! Can you please help us with some questions? We suspect/hope they’re easy ones 😎.
(1) Our goal is basically to be able to run the agentic workflow and ask it to try to fix a specified issue. We want it to not only have access to the repository, but also to be able to quickly run various test commands. The test commands should be run inside of a docker container that has all the needed dependencies (basically a dev container). The question is, is this a typical use case for agentic workflows? If so, can you please help us get started?
(2) How should we go about having it run tests inside of our container? Are there multiple options for this, and if so, what are the pros/cons to each?
(3) We’d like it to run on self-hosted runners, are there any special considerations for that?
Thank you for your help!
All reactions