Repository navigation
Description
Summary
Under arc-dind topology with the firewall enabled, pkg/workflow/nodejs.go unconditionally emits a step that copies the Copilot CLI binary into the container — regardless of which engine.id the workflow actually uses. For non-Copilot engines (e.g. engine: claude), the Copilot CLI isn't installed, so the copy step fails the job.
Where
pkg/workflow/nodejs.go (main branch, checked 2026-08-10) around line 182:
if isFirewallEnabled(workflowData) && isArcDindTopology(workflowData) {
// emits: COPILOT_SRC="$(command -v copilot)"; cp "$COPILOT_SRC" ...
}The condition gates on firewall + arc-dind topology only — there's no check on workflowData.engine.id (or equivalent) before emitting the Copilot-specific step.
Repro
- Author a workflow with
engine: claude,runner.topology: arc-dind, and the firewall enabled. - Compile and run it.
- The generated job includes a step that runs
COPILOT_SRC="$(command -v copilot)"; cp "$COPILOT_SRC" .... Sincecopilotisn't installed for a Claude-engine workflow,command -v copilotresolves to an empty string,cpis invoked against an empty source path, and the step fails the job.
Evidence run (fails for this reason): pexsoftware/test-dev-gh-aw run 31185245877.
Expected
The Copilot-CLI-copy step should only be emitted when engine.id == "copilot" (or whatever the correct identifier is), not unconditionally for every arc-dind + firewall workflow.
Workaround
We're currently working around this locally by shipping a fail-closed stub binary in place of the expected Copilot CLI path, so the copy step no-ops instead of failing. That's a local patch, not a fix.
Related but distinct
- Threat-detection job silently no-ops on
arc-dindrunners: Copilot binary not staged into the chroot (spawn /usr/local/bin/copilot ENOENT) #44249 (closed) — a different bug: the threat-detection job silently no-ops (spawn /usr/local/bin/copilot ENOENT) because a freshWorkflowDatafor that job dropsRunnerConfig. Fixed by fix: propagate RunnerConfig to detection job to fix arc-dind Copilot ENOENT #44445 (merged), which propagatesRunnerConfigto the detection job. - Neither of those touches the unconditional-emission-regardless-of-engine issue described here, which is in the main agent job, not the detection job, and isn't about
RunnerConfigpropagation — it's a missing engine-id gate.
Happy to open a PR adding the engine-id check if that's the preferred fix shape — wanted to file the bug report first in case there's a reason it's unconditional that we're missing.
Activity
lpcox commentedon Aug 19, 2026
🔗 AWF tracking issue: filed in
github/gh-aw-firewall(labeledawf-triage) — "[awf] arc-dind: Copilot CLI copy step emitted regardless of engine.id, breaking non-Copilot engines". The tool response did not include the created issue number; please check theawf-triagelabel in that repo for the exact link.lpcox commentedon Aug 19, 2026
🔗 AWF tracking issue: filed in
github/gh-aw-firewall(labeledawf-triage) — "[awf] arc-dind: Copilot CLI copy step emitted regardless of engine.id, breaking non-Copilot engines". The create_issue tool did not return an issue number in its response; please check theawf-triagelabel in that repo for the exact link.lpcox commentedon Aug 20, 2026
🔗 AWF tracking issue: https://github.com/github/gh-aw-firewall/issues/github/gh-aw-firewall#7552