Skip to content

Harden automatic Baseline repair isolation - #31

Merged
github-actions[bot] merged 1 commit into
mainfrom
agent/harden-baseline-repair-runner
Jul 28, 2026
Merged

Harden automatic Baseline repair isolation#31
github-actions[bot] merged 1 commit into
mainfrom
agent/harden-baseline-repair-runner

Conversation

@ranade-oss

Copy link
Copy Markdown
Owner

What changed

  • Runs Codex with the official read-only permission profile.
  • Makes the Codex action the final step of its runner job, as recommended by OpenAI.
  • Returns a schema-constrained unified patch instead of relying on a Codex-mutated workspace.
  • Applies the untrusted patch only in a fresh write-capable runner after exact-head verification.
  • Rejects oversized, binary, deleted, renamed, mode-changing, executable, symlink, submodule, protected-path, and out-of-scope changes.
  • Keeps the two-attempt limit and final Baseline merge gate.

Human-input impact

None for ordinary safe repairs. Protected or unrepairable failures still stop for human review.

Key setup

Do not add OPENAI_API_KEY until this hardening PR is merged. After merge, use a dedicated OpenAI project/service-account key stored only as the repository Actions secret OPENAI_API_KEY, with a constrained project budget and the narrowest available API permissions.

@github-actions
github-actions Bot merged commit eebebc0 into main Jul 28, 2026
6 checks passed
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.

1 participant