Repository navigation
Description
Summary
Historical 0.1.4/0.1.5 CI scans authenticated and performed model work but produced no required draft artifacts. The improved diagnostic identified the missing files, while the output directory remained empty.
Current status
#1084 has since added a Linux/macOS sandbox-startup check before billed work. That addresses one relevant failure mode, but does not prove the GitHub-hosted runner case below is fixed. Current-version evidence is still needed.
#359 remains open for misleading messages about retained partial output, and #1680 proposes stronger structured Standard-scan completion. #73 is the missing-artifact umbrella.
Original local/CI comparison
| Setting | Local run | GitHub-hosted runner |
|---|---|---|
| Codex Security | 0.1.5 | 0.1.5, also observed on 0.1.4 |
| OS / Node | Windows 11 / Node 22 | ubuntu-latest / Node 22 |
| Authentication | ChatGPT subscription | API key from a repository secret |
| Scan | Diff against the base branch | Diff against the base branch |
| Draft artifacts | Written; report produced | Empty output directory; exit 2 |
Python 3.12 was on the CI runner's PATH. The output directory was under $RUNNER_TEMP, outside the target repository. The run used --max-cost 2, --fail-on-severity high, and knowledge-base inputs. Three CI attempts consumed roughly $4.50 without producing reports.
The observed error was:
Could not save the Codex Security scan: Scan agent did not create required draft
artifacts: scan-manifest.json, findings.json, coverage.json. Check that the scan
agent can run shell commands and write to the scan directory before retrying.
Partial output was kept at <empty-scan-output-directory>.
What the comparison establishes
The local agent authored helpers and wrote discovery/validation artifacts; the CI run did not. Shell/write capability was a plausible explanation, informed by a separate nested-sandbox failure in #73. The comparison changed both OS and authentication, so it does not establish an authentication-specific sandbox defect or a single root cause.
Remaining requests
- Confirm whether a current runner still fails and identify the first execution/write error, using retained logs or a deterministic fixture where possible.
- Document supported runner/runtime requirements and relevant diagnostics.
- Check known capability failures before paid work.
- Describe retained output accurately when the directory is empty.
- Explain any actual authentication-related capability difference if one is established.
The old claim that the CI recipe cannot complete in general should not be treated as a current finding. Another paid reproduction should not be required merely to repeat the final missing-manifest message.
Activity
[-]0.1.5: scan agent still creates no draft artifacts on GitHub-hosted runners — same version completes locally (follow-up to #181, #73)[/-][+](0.1.5) scan agent still creates no draft artifacts on GitHub-hosted runners[/+][-](0.1.5) scan agent still creates no draft artifacts on GitHub-hosted runners[/-][+]Investigate missing draft artifacts on GitHub-hosted runners[/+]mldangelo-oai commentedon Oct 19, 2026
Lowering this to P2 and leaving it open for a current reproduction. The earlier comparison changed both OS and authentication method, so it doesn't isolate an authentication bug. The audit did not include a live hosted-runner scan.
Could you share a minimal example workflow, package version, and exact error on 0.4.0 or later? Comparing the same target and authentication method locally and on the runner would help narrow down the cause.
mldangelo-oai commentedon Oct 25, 2026
The Action setup documentation covers Bubblewrap and AppArmor on hosted Ubuntu. #1580 would automate that setup and probe the sandbox before passing credentials to the scan. The structured-draft proposal, #1680, closed without merging. The setup work is relevant to this runner case, but it doesn’t prove why the original run produced no files.
mldangelo-oai commentedon Nov 15, 2026
Thanks for documenting the empty output directory and how the local and CI runs differed. Since then, the CLI has gained a sandbox check before billed work starts (#1084), and the Action can now set up Bubblewrap on hosted Ubuntu runners (#1580).
I checked a GitHub-hosted Ubuntu 24.04 run that used an API key and wrote all three draft files under
$RUNNER_TEMP. That was a whole-repository scan. The original--diffruns still leave us with an open question about which command or write failed first. Hosted run logI’m closing this for now because we don’t have a current reproduction of the runner-specific failure. #73 is still tracking missing drafts more broadly. If this turns up again on a current release, the CLI version or Action SHA, runner image, and first command or write error from the log would give us enough to reopen and dig in. There’s no need to spend more on a scan just to repeat the final missing-manifest message.