Skip to content

chore(repo): Allow GitHub CLI outside the sandbox - #228

Merged
kyleve merged 1 commit into
mainfrom
codex/allow-gh-command
Aug 10, 2026
Merged

chore(repo): Allow GitHub CLI outside the sandbox#228
kyleve merged 1 commit into
mainfrom
codex/allow-gh-command

Conversation

@kyleve

@kyleve kyleve commented Aug 10, 2026

Copy link
Copy Markdown
Owner

Posted by an AI agent on kve’s behalf.

Summary

  • trust every gh command to run outside the project sandbox
  • cover authentication, PR, Actions, and API workflows without maintaining a brittle subcommand allowlist
  • keep unrelated commands subject to the existing sandbox and approval policy

Why

The GitHub CLI reads its authentication from macOS Keychain, which is unavailable inside the workspace sandbox. A project-local command rule makes the repository’s intended trust boundary explicit and prevents false unauthenticated failures.

Verification

  • codex execpolicy check --pretty --rules .codex/rules/github.rules -- gh auth status (allowed)
  • codex execpolicy check --pretty --rules .codex/rules/github.rules -- gh api repos/kyleve/Stuff/pulls/222 (allowed)
  • codex execpolicy check --pretty --rules .codex/rules/github.rules -- git status --short (no matching rule)
  • git diff --check
  • ./test not run because this changes only Codex command policy

@kyleve
kyleve enabled auto-merge (squash) August 10, 2026 02:10
@kyleve
kyleve merged commit 55d33d9 into main Aug 10, 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