Before you install
Permissions
What the Truecount App asks GitHub for, and what each permission is used for.
What the App asks for
| Permission | Access | Used for |
|---|---|---|
| Pull requests | Read and write | Reading a pull request's diff; posting the review and its line comments; opening a pull request when an agent proposes a change. |
| Contents | Read and write | Reading the files around a change, so a review sees what the diff touches. Writing is for one thing: committing an agent's proposed change to a new branch for its pull request. |
| Checks | Read and write | A check run on each reviewed commit that shows progress and has a Re-run button. It finishes neutral or skipped, so it never blocks a merge. |
| Issues | Read and write | Comments on a pull request's conversation, such as the mutation check's report, and the one issue an audit keeps up to date. |
| Actions | Read-only | Reading the report the mutation check's workflow uploads, so it can be posted on the pull request. |
| Metadata | Read-only | Required of every GitHub App. Also used to check that whoever starts bug reproduction on an issue has write access. |
What write access to your code is for
Truecount changes code in one way: it opens a pull request. When an agent proposes a change, Truecount commits it to a new branch named truecount/<agent>-<run> and opens a pull request from that branch. It can only create a new branch, so it never pushes to your default branch or to anyone else's branch, and it never merges. You review the pull request, then merge it or close it.
An agent proposes a change only from a workflow you add to your repository, and each run opens at most one pull request. Before it is opened, Truecount checks every file:
- Bug reproduction may add test files only, and its pull request opens as a draft.
- No agent may change workflow or Actions files (
.github/workflows/,.github/actions/), Truecount's own settings (.github/truecount.yml) or your review guidelines. - Symlinks and submodules are refused. A pull request holds at most 30 files and 2 MB, built on a commit that is already on your default branch.
GitHub grants an App's permissions to the whole repository; there is no setting for "test files only". So these limits are enforced by Truecount's server, which opens the pull request. The Action that runs in your workflow never writes to your repository itself.
What the App listens for
| Event | What happens |
|---|---|
| Pull request | A review when a pull request is opened, updated or marked ready. |
| Issue comment | A /truecount command in a pull request's conversation. |
| Check run | The Re-run button on Truecount's check. |
| Workflow run | The mutation check finishing, so its report can be posted. |
GitHub also tells every App when it is installed, uninstalled or given different repositories.
What Truecount keeps from all this, and for how long, is on the privacy page.