> ## Documentation Index
> Fetch the complete documentation index at: https://docs.murmur.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Macroscope GitHub App permissions

> The Macroscope GitHub App's required scopes and how each is used.

Macroscope code review and Murmur [agents](https://docs.murmur.dev/concepts/agents.md) work in your repositories through the Macroscope GitHub App. GitHub groups App permissions into three categories: [repository](#repository-permissions), [organization](#organization-permissions), and [account](#account-permissions). This page follows the same structure.

## How the permissions apply

* **Limited by the repositories you select.** When you install Macroscope's GitHub App you can choose between "all" or a subset of your repositories. You can change the list at any time in your organization's GitHub settings under **GitHub Apps**.
* **These permissions are an upper bound.** When Macroscope requests a new permission, GitHub asks an organization owner to approve it.
* **Users and agents have separate permissions.** The permissions granted to the Macroscope GitHub App are not automatically available to every Murmur user or [agent](https://docs.murmur.dev/concepts/agents.md): a [GitHub role](https://docs.murmur.dev/catalog/github-role.md) decides which permissions each agent can use. See [Authentication](https://docs.murmur.dev/security/authentication.md) and the [Permission reference](https://docs.murmur.dev/security/permission-reference.md) for how Murmur controls access.
* **Agents can be limited to specific repositories.** [Repository confinement](https://docs.murmur.dev/security/repository-confinement.md) restricts an agent to the repositories in its own spawn.

## Repository permissions

### Actions

**Read and write**

Read workflow runs, job logs, and artifacts to see why CI passed or failed. Write access allows re-running failed jobs, cancelling runs, and starting workflows that support `workflow_dispatch`. The default [GitHub role](https://docs.murmur.dev/catalog/github-role.md) allows re-runs only.

### Administration

**Read**

Read repository settings, branch protection, required checks, rulesets, collaborators, and team access. Agents use this to see which checks a pull request needs and why a push or merge was blocked.

### Checks

**Read and write**

Macroscope publishes its review results as check runs. Agents read check results from all CI tools that report as checks.

### Code quality

**Read**

Read GitHub code quality findings so agents can fix them.

### Code scanning alerts

**Read**

Read code scanning alerts so agents can fix them.

### Commit statuses

**Read and write**

Read commit statuses reported by CI and deployment services such as CircleCI, Jenkins, Buildkite, and Vercel. Write access allows posting a status on a commit.

### Contents

**Read and write**

Read repository files, commits, and branches. Macroscope reads code to review it. Agents clone, commit, and push. GitHub also requires this permission to merge a pull request.

### Dependabot alerts

**Read**

Read Dependabot alerts so agents can upgrade vulnerable dependencies.

### Deployments

**Read**

Read deployments and their statuses, including preview URLs.

### Discussions

**Read and write**

Read GitHub Discussions and post replies, comments, and labels.

### Issues

**Read and write**

Read and manage issues, labels, assignees, and milestones, and post comments. GitHub treats pull request conversation comments as issue comments.

### Merge queues

**Read and write**

Add pull requests to a merge queue or remove them. Adding a pull request to a merge queue counts as a merge, so the agent's [GitHub role](https://docs.murmur.dev/catalog/github-role.md) must allow merging.

### Metadata

**Read**

Read basic repository information such as name, visibility, and languages. GitHub requires this permission for every App.

### Packages

**Read**

Read GitHub Packages to troubleshoot failing package installs.

### Pages

**Read**

Read GitHub Pages settings and build results to troubleshoot failing site builds.

### Pull requests

**Read and write**

Read pull requests, diffs, reviews, and comments. Macroscope posts summaries and reviews. Agents open and update pull requests, reply to review comments, and resolve review threads. Approving or merging requires a [GitHub role](https://docs.murmur.dev/catalog/github-role.md) that allows it.

### Repository security advisories

**Read**

Read the repository's security advisories, including drafts, for context on security fixes.

### Secret scanning alerts

**Read**

Read secret scanning alerts so agents can remove leaked credentials from code.

> [!WARNING]
>
> Secret scanning alerts include the detected secret's value. An agent whose [GitHub role](https://docs.murmur.dev/catalog/github-role.md) allows this permission can read those values.

### Webhooks

**Read**

Read the repository's webhooks and recent deliveries. A webhook's settings include its destination URL. GitHub doesn't return webhook secrets.

### Workflows

**Read and write**

Create and edit files in `.github/workflows`. GitHub requires this permission to push any change to a workflow file.

## Organization permissions

### Administration

**Read**

Read organization settings, such as default repository permissions and what members can create.

### Custom organization roles

**Read**

Read the organization's custom roles and the permissions each grants.

### Members

**Read**

Read organization members and teams. Murmur grants access to members of your GitHub organization (see [Authentication](https://docs.murmur.dev/security/authentication.md)). Macroscope syncs members and teams and uses the author's teams as review context. Agents use teams to request team reviews.

## Account permissions

### Email addresses

**Read**

Read your GitHub email addresses at sign-in. Macroscope uses your primary address to identify your account.

## Related

* [Authentication](https://docs.murmur.dev/security/authentication.md)
* [Repository confinement](https://docs.murmur.dev/security/repository-confinement.md)
* [github-role catalog resource](https://docs.murmur.dev/catalog/github-role.md)
* [Service profiles](https://docs.murmur.dev/concepts/service-profiles.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.