How setup works
Four steps. Each app takes about five minutes to install.
- Check before you startKeep credentials out of your repositories, and check where your code lives.
- Install Papaya Code AnalysisRead only. Papaya finds problems in your code and links each fix to it.
- Install Papaya Code ChangesLets Papaya open pull requests with the changes you ask for.
- Tell us where your code isTwo short answers by email, so we read the right code for each agent.
Check before you start
Keep credentials out of the repositories you connect.
Papaya doesn’t need your API keys, passwords, tokens, or private keys, and we don’t want access to them. Make sure the repositories you select don’t contain any, including in old commits, because the apps can read commit history. Keep credentials in a secret manager or environment variables. If you find one in a repository, rotate it.
Your repositories need to be on GitHub.com.
If you use GitHub Enterprise Server, GitLab, or Bitbucket, contact us first.
The install is easiest for an organization owner.
If you’re not an owner, you can still start it, and GitHub will ask your owners to approve it.
Check for an IP allow list.
If your organization limits GitHub access by IP address, contact us before you install.
Install Papaya Code Analysis
Read onlyThis app lets Papaya read the code behind your agents. It can’t change anything.
- Read the files and commit history of the repositories you select.
- Read basic details about those repositories, such as their names and branches. GitHub requires this for every app.
- Change your code, push commits, or open pull requests or issues.
- See issues, pull requests, Actions, or settings.
- See any private repository you don’t select.
Install it
Open the install page and sign in to GitHub if asked.
github.com/apps/papaya-code-analysis/installations/newPick the organization (or personal account) that owns your agent code.
Under Repository access, choose Only select repositories. Then pick the repositories that hold your agent code:
- Prompts
- Tool definitions
- Model settings
- The code that runs the agent
- Shared libraries your agents use
Check the permissions GitHub shows: Read access to code and metadata. Click Install.
If the button says Install & Request or Request, an owner has to approve the request first. We can start once they do.If GitHub then shows an Authorize Papaya Code Analysis screen, click Authorize to finish. Why GitHub asks this
Install Papaya Code Changes
Pull requestsInstall this app only on the repositories where you want Papaya to open pull requests. That can be fewer repositories than in step 2.
What it does
- Papaya opens a pull request only when you ask for a change. Nothing happens automatically.
- Each change goes on its own branch whose name starts with
papaya/, and arrives as a pull request that explains the change. - Pull requests and commits come from papaya-code-changes[bot]. GitHub signs the commits, so they show as Verified.
- Papaya never merges. Your reviewers and your CI decide what goes in.
- Read files, create branches, and commit to branches in the repositories you select.
- Open and update pull requests in those repositories.
- Read the results of your CI checks on its pull requests.
- Read your GitHub Actions runs and their logs in the repositories you select, so Papaya can see why CI failed on its pull requests and fix them.
- Change your CI workflow files (anything under
.github/workflows). GitHub blocks this, because the app doesn’t have the Workflows permission. - See issues or settings.
- See any private repository you don’t select.
Protect your main branch first
Papaya never pushes to your main branch and never merges. If you also want GitHub to enforce that, add this rule in each repository before you install:
- Go to Settings, then Rules → Rulesets (or Branches), and add a rule.
- Target your default branch.
- Turn on Require a pull request before merging, with at least 1 required approval.
Papaya can’t approve its own pull requests, so with this rule every change needs approval from one of your people. Protecting branches in private repositories needs a paid GitHub plan (Team or Enterprise for organizations, Pro for personal accounts). On GitHub Free, Papaya still only works on its own papaya/ branches.
Install it
Open the install page.
github.com/apps/papaya-code-changes/installations/newPick the same organization (or personal account) as in step 2.
Under Repository access, choose Only select repositories, and pick the repositories where you want pull requests.
Check the permissions GitHub shows: read and write access to code and pull requests, and read access to actions, checks, commit statuses, and metadata. Click Install (or Install & Request).
Tell us where your code is
After you install, we can see your organization and the repositories you selected for each app. We only need two things from you:
- For each of your agents in Papaya, which repository holds its code. If one repository holds several projects, also tell us the folder.
- The branch that runs in production, if it isn’t the repository’s default branch.
Security and your code
How we use your code
- We read your code only to analyze your agents for you.
- We read the version of your code that matches your traces.
- Your improvements may include short excerpts of your code, such as the lines to change.
You can change which repositories either app can use, or remove it, at any time. See how to change or remove access.
Common questions
Questions?
Write to us, or reply to the email we sent you.
