The Trunk GitHub app lets you integrate Merge Queue and Flaky Test features with your GitHub repos. It can help you manage merge queue branches, and post PR comments about your test results. You can install the Trunk GitHub App by going to Settings > Organization > GitHub and clicking Install GitHub App. You’ll be redirected to GitHub to select the repositories where the GitHub app will be installed. The Trunk GitHub App enables functionality for all of Trunk’s tools. Not every permission is required for every feature of Trunk, and if you have only enabled one of our tools, we will only access the permissions pertaining to that tool. For complete documentation of the individual permissions the Trunk GitHub App requires, see the GitHub developer docs. Below, find an explanation of every permission the Trunk GitHub App requires and what Trunk uses it for.Documentation Index
Fetch the complete documentation index at: https://trunk-4cab4936-mintlify-migrate-trunk-docs-1778256504.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Repository permissions
Repository permissions permit access to repositories and related resources.Actions (Read and write)
This permission allows access to the results of workflow and job runs. Trunk uses this permission to read the results of workflow and job runs, and to dispatch or cancel workflow runs triggered by Trunk Merge.Administration (Read-only)
This permission includes read-only access to repository settings, teams, and collaborators. Trunk uses this permission to access a repository’s branch protection rules. Trunk cannot edit any administration settings on your GitHub organization or repository.Checks (Read and write)
This permission includes access to checks on code (such as GitHub actions and other integrations like BuildKite, CircleCI). Trunk uses this permission to examine the status of your commits, branches, and pull requests. Trunk uses this information to determine when pull requests are ready to merge. Trunk also uses this permission to post the results of code analysis.Commit statuses (Read-only)
This permission includes access to statuses on code. Some CI providers use this integration with GitHub to post the results of a job run. Trunk uses this permission to examine the status of your commits, branches, and pull requests. Trunk uses this information to determine when pull requests are ready to merge.Contents (Read and write)
This permission includes access to repository contents, commits, branches, downloads, releases, and merges. Trunk uses this permission to read thetrunk.yaml configuration file if you’ve added it to your repository. Trunk also uses write permissions to create, update, and delete the branches created and managed by Merge.