Skip to main content

GitHub guide

Give access to the app repo without sharing everything

Limit the GitHub installation to chosen repositories and clear a new app's access hold without broadening access unnecessarily.

4 min readUpdated Start the guide

You can give 1904 access only to selected GitHub repositories. New app repositories need one additional authorization step because an installation cannot add a repository to its own access list.

Keep that step separate from account sign-in and repository creation. The repository can exist in GitHub while its first build waits for installation access; creating another app does not solve that hold.

On this page

Requirements

Before you start

Make sure you have these in place before following the steps:

  • Owner access to 1904's code-storage connection.
  • GitHub administration rights for the account or organization where the installation is managed.
  • The specific repository or new-app name you intend to authorize.
Two named coding-agent profiles with different reasoning settings.
Named profiles separate implementation and review settings. Example account and model values. Open full-size screenshot
Step 1 of 6

Choose the installation scope deliberately

During the authorized GitHub connection flow, choose Only selected repositories when that is the access boundary you want. Select the existing repositories 1904 should use. All repositories remains an option, including within a dedicated organization, but it is not required merely to make selected access work.

Step 2 of 6

Start the intended app or import

Create the app or follow the existing-repository import path. A new app or a copy into a fresh repository may show One step on GitHub: give 1904 access to this app's repo. Read the repository name on the card so you grant the intended destination rather than a similarly named source repository.

Step 3 of 6

Add that repository to the installation

Use Add it on GitHub from the app card. In the 1904 Git Agent installation's Repository access settings, add the named repository and save. Only a GitHub administrator can change that list. If you are a member, the app explains who needs to do it and the account owners are notified.

Access review checklist
GitHub account or organization is correct.
The 1904 Git Agent installation is selected.
The repository named on the held app card is included.
Unrelated repositories remain outside the selected list.
Changes are saved on GitHub before returning to the app.
Step 4 of 6

Wait for the hold to clear

GitHub's update normally clears the app's hold and starts the waiting build without another request. Keep the existing app rather than creating a duplicate. If the page does not update, use Check access to ask GitHub directly and read whether authorization, repository visibility or build startup still needs attention.

Step 5 of 6

Check the simpler connected-repository path

When you connect directly to an existing repository, the picker lists repositories the installation can already see. That path does not need the new-destination authorization step. A copied repository is different: the new private destination needs access even if the original source was already authorized.

Step 6 of 6

Maintain the access boundary after setup

Use Settings, Code storage to inspect the connected account and manage the installation. Recheck after changing the selected list. Removing an app's repository from GitHub access can put that app on hold again, so coordinate permission changes with active builds and releases rather than assuming completed onboarding grants permanent access.

Check the result

  • Only the intended repositories are authorized through the installation.
  • The app can see its repository, its access hold clears and the existing build can proceed.

Troubleshooting

GitHub does not list the repository under the installation.

Confirm you are editing the correct account's 1904 Git Agent installation, add the repository and save. Ask the GitHub administrator when your role cannot modify installation access.

1904 says its GitHub connection needs renewing.

Have the account owner reconnect GitHub in Settings, then use Check access. Repository selection and an expired authorization are separate issues.

Availability and limits

  • This flow governs repository access; it does not copy repository issues, secrets, deployments or app data.
  • GitHub sign-in, installation permissions and 1904 app access are different controls. Use current setup screens if older help text asks for broader access.

Related documentation

Start with an idea, or start with what you have.

Use AI supplied by 1904, or connect the subscription you already pay for.