GitHub App (Code tab)
The Plutus GitHub App gives Plutus access to the GitHub repositories you choose. It’s what
repository cost mapping reads and what
automated fixes uses to open draft pull requests. You connect it, and
set its rules, on the Code tab of the Integrations page (/integrations?tab=code).
This is separate from the GitHub event source, which uses a personal access token to put PR merges and releases on your cost timeline, and from “Continue with GitHub” sign-in.
What the App can access
Section titled “What the App can access”- Read: only the repositories you select when you install the App on GitHub. Whether Plutus reads them to map cost to code is a separate choice on the Repositories page, off until an admin turns it on.
- Write: draft pull requests only, and only under the automation rules on the Code tab. Nothing is written until you set those up.
On GitHub, the App asks for read access to repository metadata, and read and write access to repository contents and pull requests.
Setup steps
Section titled “Setup steps”The Code tab opens with a Setup list of three steps, each with a status badge. The first step that isn’t done has the next action.
- Connect GitHub: Connected, Not connected or Needs attention.
- Pick the repositories eligible for pull requests: On with the number of repositories, No allow rule or Off. It counts as done when automation is on and at least one allow rule exists.
- Confirm which repositories map to which cloud resources: Reading on or Reading off, with an Open Repositories link. It counts as done when reading is on.
The cards below the list are numbered to match: 1. Connect GitHub and 2. Pull request automation.
Connecting GitHub
Section titled “Connecting GitHub”You need the admin role in Plutus. Everyone else sees the tab read-only.
- Open Integrations and select the Code tab.
- Click Connect GitHub. GitHub opens.
- On GitHub, pick the user or organization to install the App on, and choose All repositories or select the repositories Plutus may see.
- GitHub sends you back to the Code tab. Plutus then reads the list of repositories you selected, which can take a minute.
If the App is already installed on GitHub, by you or by an organization you own, click Link an existing installation instead.
To connect an organization, you must be an owner of that organization on GitHub; Plutus checks this through GitHub. If you aren’t, Plutus doesn’t link the installation and says that an organization owner must complete the connection. If GitHub sends your install request to an organization owner for approval, the tab says so, and nothing is connected until they approve it.
An account can hold up to 10 installations. Click Connect another account to add one.
If the Code tab says the GitHub integration isn’t available or isn’t enabled for your account, there’s nothing to connect yet. Contact support if you expected it.
Installations and repositories
Section titled “Installations and repositories”Each installation shows its GitHub account, whether it covers all or selected repositories, and a status:
| Status | Meaning |
|---|---|
| Connected | Plutus can read the repositories you selected on GitHub. |
| Reading repositories | Plutus is reading the list of repositories you selected. |
| Suspended | The App is suspended on GitHub. Plutus can read nothing until it’s unsuspended there. |
| Reconnect needed | GitHub no longer accepts the connection. Reconnect it on GitHub to restore access. |
| Refresh failed | Plutus couldn’t refresh the connection. It retries on its own; click Refresh to try now. |
Each installation has a Refresh button and a More actions menu. Disconnect is in that menu. It stops Plutus reading those repositories and drops any pull request work waiting on them. The App stays installed on GitHub until you uninstall it there. To change which repositories Plutus sees, change the App’s repository selection on GitHub.
The What Plutus can access and Connect or link notes are in info popovers beside the card title and the buttons.
Repository table
Section titled “Repository table”Below the installations, the Repositories table lists each repository Plutus can see. Search narrows the list, and Show more loads the next 50. The columns are:
- Repository, with Archived and Fork badges.
- Visibility: Private or Public.
- Branch protection: Protected, Branch unprotected, App not restricted, Unprotected or Not checked. When the repository’s GitHub plan has no branch protection, an info popover says so: Plutus still opens draft pull requests there when an admin asks, a person reviews and merges them, and Plutus doesn’t open removals on its own.
- Pull requests, once automation is available: what the rules decide, such as Eligible for pull requests, Automation is off, No allow rule matches or Blocked by a deny rule.
Pull request automation
Section titled “Pull request automation”The Pull request automation card decides which repositories may receive pull requests. It’s off by default. While it’s off, Plutus opens no pull requests, whatever the rules say.
Click Turn on automation to switch it on. The confirmation says how many repositories would be eligible under your allow rules. You can turn it on before any rule exists, but no repository is eligible until you add an allow rule (below), and the card shows a warning until you do.
Only repositories with branch protection limits eligibility to repositories whose default branch is protected. It’s off by default.
A private repository on GitHub’s free plan can’t have branch protection. Plutus detects this and shows a note on the repository’s row instead of a failure: Plutus still opens draft pull requests there when an admin asks, a person reviews and merges them, and Plutus doesn’t open removals there on its own. If you turn on Only repositories with branch protection, these repositories stay ineligible. See Automated fixes.
Turning automation on makes repositories eligible. Whether Plutus then opens a pull request is decided by Settings, Automated fixes. That card also holds the minimum saving per fix and the removal switches. Each pull request Plutus opens links back to its finding on the Savings page.
Allow and deny rules
Section titled “Allow and deny rules”A rule names repositories as owner/repo, with * as the only wildcard, for example acme/api
or acme/*. A deny rule always wins over an allow rule.
- Choose Allow or Deny under Rule type.
- Type the pattern under Repository pattern.
- Click Add rule.
Before an allow rule is saved, Plutus previews it: the confirmation lists how many more repositories the rule would make eligible for pull requests (and names some of them), so you see the effect before it applies. Deleting a deny rule shows the same preview. Deleting an allow rule says how many repositories it matched, which stop being eligible unless another allow rule covers them.
Only admins can change the switch and the rules. Every change is recorded in the activity log, for example Pull Request Automation Turned On and Repository Rule Added.