# Check out private pull requests into the managed sandbox

> The new github_checkout_pull_request tool fetches a pull request into the managed sandbox with a read-only token that never stays in the sandbox.

Source: <https://everruns.com/docs/changelog/2026-10-12-github-checkout-pull-request/>

Date: 2026-10-12
Products: Platform, Cloud
Category: Feature
Available: In 0.48.0

A review agent with the [GitHub capability](https://everruns.com/docs/capabilities/github/) and a managed sandbox can now check out a pull request from a private repository and build, test or diff it with `bash`. Before, `git clone` in the sandbox only worked for public repositories.

```json
{
  "repo": "acme/app",
  "number": 42
}
```

`github_checkout_pull_request` fetches the head and base branch into `/workspace/app` and returns the commit hashes. The token it uses reads one repository, is passed through a temporary file removed after the fetch, and never lands in the git config, later shell commands or sandbox checkpoints.

## Update 2026-10-12

Checkout now requires verified installation-token scope from the trusted resolver: one repository, read-only permissions, and at most one hour remaining. Personal OAuth tokens, session-secret fallbacks and older resolver responses without scope evidence are refused. Connect a GitHub App installation for checkout; personal-token workflows can still use the host-side pull request and diff tools.