Skip to content

fix: run the Codex review on ubuntu-24.04 - #9

Merged
JuArce merged 1 commit into
mainfrom
fix/codex-review-ubuntu-24.04
Oct 28, 2026
Merged

JuArce merged 1 commit into
mainfrom
fix/codex-review-ubuntu-24.04

Conversation

@JuArce

@JuArce JuArce commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

The Codex review fails before Codex even starts on any run that lands on an ubuntu-26.04 runner, which is what ubuntu-latest now resolves to. waas run 40721511115 (PR yetanotherco/waas#190) aborted in 0.6 s:

runner is not a member of the sudo group.
Error: Could not restrict access to /run/dbus/system_bus_socket.
    at restrictRootServiceSocket (.../openai/codex-action/v1/dist/main.js:25697:13)
    at async dropSudoWithPrivileges (...)

Cause

The runner image is the only difference between a passing run and a failing one:

waas run Runner image openai/codex-action@v1 Result
40706001262, 2026-10-28 14:26 ubuntu-24.04 (20261012) v1.13, bdf19a4 passed
40721511115, same day ubuntu-26.04 (20261025) v1.13, bdf19a4 failed

safety-strategy: drop-sudo takes away the runner's root access before Codex runs. Part of that is a deny ACL on root-owned service sockets such as the system D-Bus socket. On ubuntu-26.04 the ACL doesn't take effect: the socket stays writable by runner (other::rw-), and the action aborts on purpose. This is the upstream bug openai/codex-action#188, "drop-sudo fails on Ubuntu 26.04", open since 2026-10-20. v1.13 is still the latest tag, and nothing on main since then addresses it.

Change

pr_review_codex.yml: the codex job runs on ubuntu-24.04 instead of ubuntu-latest, with a comment pointing at the upstream issue. drop-sudo stays. Switching to unsafe would leave Codex with sudo while it holds OPENAI_API_KEY and reads PR content.

The post_feedback job stays on ubuntu-latest, since it doesn't use codex-action. The Claude and Kimi workflows don't use it either.

Verification

  • actionlint reports no new findings. The 8 shellcheck info/style notes in the Get PR details script are already on main.
  • Not exercised on a runner yet. That takes a caller PR whose own workflow file pins this commit (4a51270), because a pull_request run uses the PR's copy of the caller workflow. A /codex comment won't do: it runs the default branch's copy.

After merging

Tag a release (v1.0.4) so callers can bump from their pinned SHA. waas pins v1.0.2. Move back to ubuntu-latest when a codex-action release fixes #188.

ubuntu-latest now resolves to ubuntu-26.04, where codex-action's default
drop-sudo safety strategy aborts before Codex runs:

  Error: Could not restrict access to /run/dbus/system_bus_socket.

The deny ACL it puts on the D-Bus socket doesn't take effect on that image
(openai/codex-action#188, no fixed release yet). Pin the job to
ubuntu-24.04 and keep drop-sudo, rather than weakening the strategy.
@JuArce
JuArce merged commit f4afc2c into main Oct 28, 2026
@JuArce
JuArce deleted the fix/codex-review-ubuntu-24.04 branch November 18, 2026 14:35
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