Permissions

Say what a session can do on GitHub and with the Ellipsis API.

Permissions say what a session can do on GitHub and with the Ellipsis API. Each of github and ellipsis is all, read_only, or a list of entries, and a request goes through only when an entry allows it. Leave one out and every request to it is refused. The environment decides which repositories are checked out and which secrets are set, and a checkout needs no permission.

Allow everything

1
session:
2
claude_code:
3
model: claude-opus-5-5
4
permissions:
5
github: all
6
ellipsis: all

The agent can do everything the GitHub App installation allows and use every operation a session token can. A session you start from the dashboard, or with the CLI and no config file, asks for this.

Read every repository

1
session:
2
claude_code:
3
model: claude-opus-5-5
4
permissions:
5
github: read_only

The agent can read code, pull requests, issues, checks, and Actions runs in every repository the GitHub App can see. It can't push, open pull requests, or comment, but it can still edit files in its environment.

Read everything and push to one repository

1
session:
2
claude_code:
3
model: claude-opus-5-5
4
permissions:
5
github:
6
- read_only
7
- allow: contents.push
8
repository: web-repo

The agent reads every repository and pushes only to web-repo. A list entry is an action name by itself, or a rule that names its actions in allow and narrows them with the fields under Fields.

Read code in one repository

1
session:
2
claude_code:
3
model: claude-opus-5-5
4
permissions:
5
github:
6
- allow: contents.read
7
repository: api-repo

The agent can clone and read api-repo. It can't read its pull requests or issues, or any other repository.

Open one pull request from its own branch

1
session:
2
claude_code:
3
model: claude-opus-5-5
4
permissions:
5
github:
6
- allow: read_only
7
repository: [api-repo, web-repo]
8
- allow: contents.push
9
repository: web-repo
10
branch: ellipsis/{session_id}/*
11
- allow: pull_requests.create
12
repository: web-repo
13
branch: ellipsis/{session_id}/*
14
limit: 1

The agent reads both repositories, pushes only to branches that start with ellipsis/ and the session's id, and opens at most one pull request in web-repo. {session_id} becomes the session's id, so two sessions never push to each other's branches.

Push to one pull request

1
session:
2
claude_code:
3
model: claude-opus-5-5
4
permissions:
5
github:
6
- allow: read_only
7
repository: api-repo
8
- allow: contents.push
9
repository: api-repo
10
pull_request: 12
11
limit: 1

The agent can push once, and only to the branch of pull request 12. A push counts once however many commits it carries.

Allow Ellipsis API operations

1
session:
2
claude_code:
3
model: claude-opus-5-5
4
permissions:
5
ellipsis:
6
- sessions.get
7
- sessions.send_message

Entries are operation names as the SDKs call them. read_only allows every read operation, and sessions.* allows every sessions operation. Anything no entry allows fails with a 403 that names the operation. The token can always read its own identity, which the CLI uses to print links.

What a refused request does

A refused request never reaches GitHub. git push prints the reason next to the branch, and other GitHub calls fail with a 403 that names the action and the repository. A request GitHub refuses doesn't count toward a limit.

Unless permissions.github is all, these are refused whatever the entries say.

  • A GitHub write that isn't an action under Fields, such as a commit status or a release asset.
  • GitHub's GraphQL API, so gh pr and gh issue commands fail. Use the REST API instead, such as gh api repos/your-org/api-repo/pulls.
  • A read that isn't under a repository, such as a code search.

Secrets

The agent and its tools can read every secret the environment sets, and GitHub permissions don't limit what those credentials can do. Keep secret values out of prompts, committed YAML, and command output, because session logs record what tools print.

Fields

A request passes when any entry allows it, and GitHub entries can't allow more than the GitHub App installation has.

all for everything the GitHub App installation allows, read_only for every read in every repository, or a list. A list entry is an action name, or a rule with the fields below that limits what it allows. A request passes when any entry allows it. Default no GitHub access.

all for every operation a session token can use, read_only for every read operation, or a list. A list entry is an operation name, read_only, or a resource with .*. A request passes when any entry allows it. Default no Ellipsis API access.

ActionAllowsTakes
read_onlyEvery read action belowrepository
contents.writeEvery contents action, reads includedrepository
pull_requests.writeEvery pull_requests action, reads includedrepository
issues.writeEvery issues action, reads includedrepository
actions.writeEvery actions action, reads includedrepository
contents.readCloning and reading coderepository
pull_requests.readReading pull requestsrepository
issues.readReading issuesrepository
checks.readReading check runsrepository
statuses.readReading commit statusesrepository
actions.readReading Actions runs and logsrepository
contents.pushPushing commits and creating branchesbranch, pull_request
contents.delete_branchDeleting branchesbranch
pull_requests.createOpening pull requestsbranch, base
pull_requests.updateEditing, closing, and reopening pull requests, labels, and reviewerspull_request
pull_requests.commentCommenting on pull requestspull_request
pull_requests.reviewSubmitting reviews, approvals includedpull_request
pull_requests.mergeMerging pull requestsbase, pull_request
issues.createOpening issues
issues.commentCommenting on issuesissue
issues.updateEditing, closing, and labeling issuesissue
actions.runStarting and rerunning workflows

Every action also takes repository and limit. A field an action doesn't take fails validation, so put actions that need different fields in separate rules. An action written by itself takes no fields. The names before the dot are GitHub's own permission names.

On this page

Schedule a demo