Why source control integration matters
Ona environments need access to your repositories. Without a configured Git provider, environments can’t clone code, and agents can’t open pull requests or manage issues on your behalf. Because Ona uses a two-plane architecture, source control credentials are handled entirely by runners — never by the management plane. This means:- Your code stays where you choose. With a self-hosted runner, source code and source control management (SCM) credentials never leave your infrastructure. With Ona Cloud, code runs on Ona-managed infrastructure separate from the management plane.
- Authentication is per-user. Each developer authorizes their own access via OAuth or a Personal Access Token (PAT). Ona uses these credentials to clone repos and push changes on behalf of that user.
- Agents inherit your permissions. When an agent creates a pull request or adds a review comment, it acts using the environment owner’s SCM credentials and respects the same repository permissions.
How it works
Source control configuration happens at two levels:- Runner level — An administrator configures which Git providers and authentication methods (OAuth, PAT) are available on a runner. This determines what providers developers can connect to.
- User level — Each developer authorizes access to their Git provider. On first environment creation, Ona prompts for authorization using the methods the administrator configured.
Supported providers
| Provider | OAuth | PAT | Agent SCM tools |
|---|---|---|---|
| GitHub | Yes | Yes | Yes |
| GitLab | Yes | Yes | Yes |
| Bitbucket Cloud | Yes | Planned | No |
| Azure DevOps | Yes | Yes | No |
Organization controls for SCM tools
Administrators can control whether agents are allowed to use SCM tools across the organization. This is useful when your team requires human review of all SCM interactions, or when rolling out agent-assisted workflows gradually.
Setting up Git authentication
To connect a Git provider to your Ona account:- Set up the SCM integration for your runner at Settings > Runners. This is required for Enterprise only.
- Connect or disconnect available providers at Settings > Git Authentications